Identifying Accurate Refactoring Opportunities Using Metrics

yixin bian,xiaohong su,peijun ma
DOI: https://doi.org/10.1007/978-81-322-1695-7_17
2014-01-01
Abstract:Cloned code, also known as duplicated code, is among the bad "code smells." Refactoring can be used to remove clones and makes a software system more maintainable. However, there is a problem that causes the output results of the clone code detection tool cannot be directly refactored. The problem is not all the clone groups are suitable for refactoring. To address it, we propose a metric method to identify clone groups that are suitable for refactoring. The results of several large-scale software system studies indicate that our method can significantly increase the accuracy of identifying clone groups that are suitable for refactoring. It is not only beneficial to the following study of refactoring, but also it connects the entire process from clone detection to clone refactoring.
What problem does this paper attempt to address?