Recommending Move Method refactorings using dependency sets
Authors:
- 1 October 2013
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- No. 10951350,p. 232-241
Abstract
Methods implemented in incorrect classes are common bad smells in object-oriented systems, especially in the case of systems maintained and evolved for years. To tackle this design flaw, we propose a novel approach that recommends Move Method refactorings based on the set of static dependencies established by a method. More specifically, our approach compares the similarity of the dependencies established by a source method with the dependencies established by the methods in possible target classes. We evaluated our approach using systems from a compiled version of the Qualitas Corpus. We report that our approach provides an average precision of 60.63% and an average recall of 81.07%. Such results are, respectively, 129% and 49% better than the results achieved by JDeodorant, a well-known move method recommendation system.Keywords
This publication has 11 references indexed in Scilit:
- A recommendation system for repairing violations detected by static architecture conformance checkingSoftware: Practice and Experience, 2013
- Qualitas.class corpusACM SIGSOFT Software Engineering Notes, 2013
- Quantifying the Effect of Code Smells on Maintenance EffortIEEE Transactions on Software Engineering, 2012
- Identification and application of Extract Class refactorings in object-oriented systemsJournal of Systems and Software, 2012
- Automated Behavioral Testing of Refactoring EnginesIEEE Transactions on Software Engineering, 2012
- Identification of extract method refactoring opportunities for the decomposition of methodsJournal of Systems and Software, 2011
- Cluster Analysis2011
- Hierarchical relational models for document networksThe Annals of Applied Statistics, 2010
- A dependency constraint language to manage object‐oriented software architecturesSoftware: Practice and Experience, 2009
- Identification of Move Method Refactoring OpportunitiesIEEE Transactions on Software Engineering, 2009