Historical perspective of code clone refactorings in evolving software

Author:

Kanwal JaweriaORCID,Maqbool Onaiza,Basit Hamid AbdulORCID,Sindhu Muddassar AzamORCID,Inoue Katsuro

Abstract

Cloning in software is generally perceived as a threat to its maintenance and that is why it needs to be managed properly. Understanding clones from a historical perspective is essential for effective clone management. Analysis of code refactorings performed on clones in previous releases will help developers in taking decisions about clone refactoring in future releases. In this paper we perform a longitudinal study on the evolution of clone refactorings in various versions of five software systems. To perform a systematic study on clone refactoring evolution, we define clone evolution patterns for studying refactorings in a formal notation. Our results show that only a small proportion of code clones are refactored between the versions and most of the refactorings are inconsistent within clone classes. Moreover, clone refactorings may cause clone removal. Analysis of the source code of refactored clones reveals similar reasons of inconsistent refactorings and clone removal for five Java systems. This analysis will help in devising appropriate strategies for managing clone refactorings in software and hence provide foundation for devising better clone management tools.

Funder

Higher Education Commision, Pakistan

Prince Sultan University, Riyadh, Saudi Arabia

Publisher

Public Library of Science (PLoS)

Subject

Multidisciplinary

Reference44 articles.

1. Roy C, Zibran M, Koschke R. The vision of software clone management: past present and future. In: Proceedings of Software Evolution Week Conference on Software Maintenance, Reengineering and Reverse Engineering. IEEE; 2014. p. 18–33.

2. Kim M, Sazawal V, Notkin D, Murphy G. An empirical study of code clone genealogies. In: ACM SIGSOFT Software Engineering Notes. ACM; 2005. p. 187–196.

3. Predicting change consistency in a clone group;F Zhang;Journal of Systems and Software,2017

4. A survey on software clone detection research;C Roy;Queens School of Computing,2007

5. Yoshida N, Higo Y, Kamiya T, Kusumoto S, Inoue K. On refactoring support based on code clone dependency relation. In: 11th IEEE International Software Metrics Symposium (METRICS’05). IEEE; 2005. p. 10–pp.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3