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

一种重复代码检测技术的改进研究
引用本文:刘建宾,李建忠. 一种重复代码检测技术的改进研究[J]. 北京机械工业学院学报, 2009, 24(3)
作者姓名:刘建宾  李建忠
作者单位:刘建宾(北京信息科技大学计算机学院,北京,100192);李建忠(韩山师范学院数学与信息技术学院,潮州,521041) 
基金项目:北京市自然科学基金项目,北京市教委科技发展计划面上项目,北京市管高等学校人才强教计划-中青年骨十教师项目、人才强教深化计划项目,广东省自然科学基金项目 
摘    要:针对Kontogiannis重复代码度量方法不能区分IF条件语句与循环语句的控制流复杂性,且未对两个比较函数的返回类型进行判断时而产生错误匹配的问题,通过引入两个新的度量变量对其进行改进,结果表明,改进的度量公式能提高重复代码检测的准确性并减少匹配错误,为自动重构定位提供更有效的技术.

关 键 词:重复代码检测  度量  重构定位  自动重构

Improvement of detection technology of duplicated code
LIU Jian-bin,LI Jian-zhong. Improvement of detection technology of duplicated code[J]. Journal of Beijing Institute of Machinery, 2009, 24(3)
Authors:LIU Jian-bin  LI Jian-zhong
Affiliation:LIU Jian-bin1,LI Jian-zhong2(1.School of Computer Science,Beijing Information Science , Technology University,Beijing 100192,China,2.Institute of Mathematics , Information Technology,Hanshan Normal College,Chaozhou 521041,China)
Abstract: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 matc...
Keywords:duplicated code detecting  metrics  refactoring localization  automatic refactoring  
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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