2011 25th Brazilian Symposium on Software Engineering (2011)
Sao Paulo, Sao Paulo Brazil
Sept. 28, 2011 to Sept. 30, 2011
DOI Bookmark: http://doi.ieeecomputersociety.org/10.1109/SBES.2011.21
Currently analysis of refactoring in software reposi- tories 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.
B. Catão, C. Varjão, R. Gheyi, G. Soares, S. Aguiar and T. Massoni, "Analyzing Refactorings on Software Repositories," 2011 25th Brazilian Symposium on Software Engineering(SBES), Sao Paulo, Sao Paulo Brazil, 2011, pp. 164-173.