首页 | 本学科首页   官方微博 | 高级检索  
     


An efficient approach to identify multiple and independent Move Method refactoring candidates
Affiliation:1. DInf - Federal University of Paraná, CP: 19081, CEP: 81.531-980, Curitiba, Brazil;2. State University of Ceará, 1700 Dr. Silas Munguba Avenue, Fortaleza, Brazil;1. Ecole Nationale Supérieure d’Informatique, BP 68 M Oued-Smar, Algiers, Algeria;2. IRISA, Université de Bretagne-Sud, Vannes, France;3. Laboratoire d’Ingénierie des Systèmes Complexes (LISCO), Université Badji Mokhtar, Annaba, Algeria
Abstract:ContextApplication of a refactoring operation creates a new set of dependency in the revised design as well as a new set of further refactoring candidates. In the studies of stepwise refactoring recommendation approaches, applying one refactoring at a time has been used, but is inefficient because the identification of the best candidate in each iteration of refactoring identification process is computation-intensive. Therefore, it is desirable to accurately identify multiple and independent candidates to enhance efficiency of refactoring process.ObjectiveWe propose an automated approach to identify multiple refactorings that can be applied simultaneously to maximize the maintainability improvement of software. Our approach can attain the same degree of maintainability enhancement as the method of the refactoring identification of the single best one, but in fewer iterations (lower computation cost).MethodThe concept of maximal independent set (MIS) enables us to identify multiple refactoring operations that can be applied simultaneously. Each MIS contains a group of refactoring candidates that neither affect (i.e., enable or disable) nor influence maintainability on each other. Refactoring effect delta table quantifies the degree of maintainability improvement each elementary candidate. For each iteration of the refactoring identification process, multiple refactorings that best improve maintainability are selected among sets of refactoring candidates (MISs).ResultsWe demonstrate the effectiveness and efficiency of the proposed approach by simulating the refactoring operations on several large-scale open source projects such as jEdit, Columba, and JGit. The results show that our proposed approach can improve maintainability by the same degree or to a better extent than the competing method, choosing one refactoring candidate at a time, in a significantly smaller number of iterations. Thus, applying multiple refactorings at a time is both effective and efficient.ConclusionOur proposed approach helps improve the maintainability as well as the productivity of refactoring identification.
Keywords:Refactoring identification process  Refactoring selection  Multiple simultaneous refactorings  Maintainability improvement  Refactoring effect dependency
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号