2004 · 35 citations · 12 references
ComputingComputer ScienceCompilersProgramming LanguagesSoftware EngineeringPlagiarism DetectionReverse EngineeringSoftware DesignSoftware MaintenanceSoftware RefactoringSoftware ReuseAutomated RefactoringClone DetectionCode Clone DetectionObject-oriented ArchitectureRefactoring DetectionSource Code Cloning
In the last decade, several researchers have investigated techniques to automatically detect duplicated code in programs exceeding hundreds of thousands lines of code. All of these techniques have known merits and deficiencies, but as of today, little is known on how these techniques fit into the refactoring process of object-oriented systems. This work compares three representative detection techniques (simple line matching, parameterized matching, and metric fingerprints) by means of five small to medium sized cases and analyses the differences between the reported matches. Based on this comparison, we conclude that (1) simple line matching is best suited for a partial, yet advanced restructuring with little effort; (2) metric fingerprints work best for refactoring a system with minimal effort; (3) parameterized matching demands more effort yet allows a more profound, less obvious restructuring of the code.
12
Clone detection using abstract syntax trees
Ira D. Baxter, A. Yahin, Leonardo de Moura et al. · 2002 · 1.3K citations
Refactoring object-oriented frameworks
William F. Opdyke · 1992 · 1K citations