Method Level Detection and Removal of Code Clones in C and Java Programs Using Refactoring
Clone detection and refactoring is the major role in software maintenance and evaluation. A well-known bad code smell in refactoring and software maintenances is duplicated code, or code clones. A code clone is a code fragment that is identical or similar to another. Unjustified code clones increase code size, make maintenance and comprehension more difficult, and also indicate design problems such as lack of encapsulation or abstraction. This paper proposes to automatically detecting code clones in c/java programs, underlying a collection of refactoring to support user-controlled automatic clone removal, and examines their application in substantial case studies. Both the clone detector and the refactoring will be done using new refactoring methods.