• DocumentCode
    2139455
  • Title

    Analyzing Refactorings on Software Repositories

  • Author

    Soares, Gustavo ; Catao, Bruno ; Varjao, Catuxe ; Aguiar, Solon ; Gheyi, Rohit ; Massoni, Tiago

  • Author_Institution
    Dept. of Comput. & Syst., Fed. Univ. of Campina Grande, Campina Grande, Brazil
  • fYear
    2011
  • fDate
    28-30 Sept. 2011
  • Firstpage
    164
  • Lastpage
    173
  • Abstract
    Currently analysis of refactoring in software repositories is either manual or only syntactic, which is time-consuming, error-prone, and non-scalable. Such analysis is useful to understand the dynamics of refactoring throughout development, especially in multi-developer environments, such as open source projects. In this work, we propose a fully automatic technique to analyze refactoring frequency, granularity and scope in software repositories. It is based on SAFEREFACTOR, a tool that analyzes transformations by generating tests to detect behavioral changes - it has found a number of bugs in refactoring implementations within some IDEs, such as Eclipse and Netbeans. We use our technique to analyze five open source Java projects (JHotDraw, ArgoUML, SweetHome 3D, HSQLDB and jEdit). From more than 40,723 software versions, 39 years of software development, 80 developers and 1.5 TLOC, we have found that: 27% of changes are refactorings. Regarding the refactorings, 63,83% are Low level, and 71% have local scope. Our results indicate that refactorings are frequently applied before likely functionality changes, in order to better prepare design for accommodating additions.
  • Keywords
    Java; software maintenance; ArgoUML project; Eclipse; HSQLDB project; JHotDraw project; Netbeans; Saferefactor tool; SweetHome 3D project; jEdit project; open source Java project; software development; software refactoring analysis; software repository; Context; History; Java; Open source software; Programming; Three dimensional displays;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Engineering (SBES), 2011 25th Brazilian Symposium on
  • Conference_Location
    Sao Paulo
  • Print_ISBN
    978-1-4577-2187-8
  • Type

    conf

  • DOI
    10.1109/SBES.2011.21
  • Filename
    6065160