An efficient approach to identify multiple and independent Move Method refactoring candidates

Ah Rim Han, Doo Hwan Bae, Sungdeok Cha

Research output: Contribution to journalArticlepeer-review

7 Citations (Scopus)

Abstract

Context Application 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. Objective We 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). Method The 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). Results We 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. Conclusion Our proposed approach helps improve the maintainability as well as the productivity of refactoring identification.

Original languageEnglish
Pages (from-to)53-66
Number of pages14
JournalInformation and Software Technology
Volume59
DOIs
Publication statusPublished - 2015 Jan 1

Keywords

  • Maintainability improvement
  • Multiple simultaneous refactorings
  • Refactoring effect dependency
  • Refactoring identification process
  • Refactoring selection

ASJC Scopus subject areas

  • Software
  • Information Systems
  • Computer Science Applications

Fingerprint Dive into the research topics of 'An efficient approach to identify multiple and independent Move Method refactoring candidates'. Together they form a unique fingerprint.

Cite this