The Community for Technology Leaders
2013 27th Brazilian Symposium on Software Engineering (2011)
Sao Paulo, Sao Paulo Brazil
Sept. 28, 2011 to Sept. 30, 2011
ISBN: 978-0-7695-4603-2
pp: 164-173
ABSTRACT
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.
INDEX TERMS
CITATION
Bruno Catão, Catuxe Varjão, Rohit Gheyi, Gustavo Soares, Solon Aguiar, Tiago Massoni, "Analyzing Refactorings on Software Repositories", 2013 27th Brazilian Symposium on Software Engineering, vol. 00, no. , pp. 164-173, 2011, doi:10.1109/SBES.2011.21
222 ms
(Ver 3.3 (11022016))