Improvement of detection technology of duplicated code
Jianzhong Li · Journal of Beijing Information Science & Technology University · 2009
Aiming at false matches of Kontogiannis metrics for the duplicated code produced on account of two reasons,the first of which is that the complexity of the control flow between if statement and loops statement cannot be distinguished by the metrics,the second is that this technique doesn't make judgement of the types of the returns of the two compared methods,Kontogiannis metrics is improved by introducing two new variables so that the accuracy of detecting the duplicated code is improved and the false matches are reduced,which provides more effective technology for the localization of automatic refactoring.