ObjectOriented Program Method Level Clone Detection Based on Similarity Measurement
电子学报2010年38卷第2A期 页码:174-181
作者机构:
1. 1.上海市智能信息处理重点实验室,上海,200433
2. 复旦大学计算机科学技术学院,上海,200433
作者简介:
基金信息:
DOI:
中图分类号:TP311.5
纸质出版:2010
稿件说明:
移动端阅览
FONT face, Verdana, 于冬琦, 等. 基于相似性度量的面向对象程序方法级克隆侦测[J]. 电子学报, 2010,38(2A):174-181.
FONT face, Verdana, YU Dong-qi, et al. ObjectOriented Program Method Level Clone Detection Based on Similarity Measurement[J]. Acta Electronica Sinica, 2010, 38(2A): 174-181.
FONT face, Verdana, 于冬琦, 等. 基于相似性度量的面向对象程序方法级克隆侦测[J]. 电子学报, 2010,38(2A):174-181.DOI:
FONT face, Verdana, YU Dong-qi, et al. ObjectOriented Program Method Level Clone Detection Based on Similarity Measurement[J]. Acta Electronica Sinica, 2010, 38(2A): 174-181.DOI:
<FONT face=Verdana>Code clone detection is important for refactoring and extraction of reusable assets.The present code clone detection method is on the basis of detection of similar code segments
which brings difficulty for further clone analysis and refactoring.Aiming at this problem
this paper offers a method level clone detection method for object-oriented program based on similarity measurement
which detects method level cloned code.Our method utilizes comments of the code
method signature and syntactic similarity to measure the degree of the clone.Based on the method mentioned above
further refactoring can be realized by combining similar methods of subclasses into one method and pulling it up into superclass.Our method’s effectiveness has been verified by analyzing the result of the experiment on the code of JDK.The initial experiment result shows that our method canhelp developer detect method level code clone both accurately and effectively.