Skip to main content

2004 | OriginalPaper | Buchkapitel

Refactoring Support Based on Code Clone Analysis

verfasst von : Yoshiki Higo, Toshihiro Kamiya, Shinji Kusumoto, Katsuro Inoue

Erschienen in: Product Focused Software Process Improvement

Verlag: Springer Berlin Heidelberg

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Software maintenance is the most expensive activity in software development. Many software companies spent a large amount of cost to maintain the existing software systems. In perfective maintenance, refactoring has often been applied to the software to improve the understandability and complexity. One of the targets of refactoring is code clone. A code clone is a code fragment in a source code that is identical or similar to another. In an actual software development process, code clones are introduced because of various reasons such as reusing code by ‘copy-and-paste’ and so on. Code clones are one of the factors that make software maintenance difficult. In this paper, we propose a method which removes code clones from object oriented software by using existing refactoring patterns, especially “Extract Method” and “Pull Up Method”. Then, we have implemented a refactoring supporting tool based on the proposed method. Finally, we have applied the tool to an open source program and actually perform refactoring.

Metadaten
Titel
Refactoring Support Based on Code Clone Analysis
verfasst von
Yoshiki Higo
Toshihiro Kamiya
Shinji Kusumoto
Katsuro Inoue
Copyright-Jahr
2004
Verlag
Springer Berlin Heidelberg
DOI
https://doi.org/10.1007/978-3-540-24659-6_16