AUTOMATIC DETECTING AND REMOVAL DUPLICATE CODES CLONES

Document Type : Original Article

Authors

1 Department of Computer Science, Faculty of Computers and Information, Mansoura University, Mansoura 35516, Egypt.

2 Department of Computer Science, Faculty of Computers and Information, Mansoura University, Mansoura 35516, Egypt

Abstract

Code clones is considered now an important part of improving the overall design of software structure and software maintenance through making the source code more readable and more capable for maintenance. To remove code clones from a written code, refactoring technique could be used. Copying and pasting fragments of codes is a type of code clones that should be handled and has many practical applications such as software and project plagiarism detection clones and copyright infringements. To overcome this problem, we propose a computerized refactoring system to remove duplicate code clones. The simulation results of applying the proposed system showed that it increases the maintainability and quality of software system based on the total lines of code, blank lines and total methods count for the four used Java open source projects.

Keywords