Duplication of code is a common phenomenon in the development and maintenance of large software systems. The detection and removal of duplicated code has become a standard activity during the refactoring phases of a software life-cycle. However, code duplication identification tends to produce large amounts of data making the understanding of the duplication situation as a whole difficult. Reengineers can easily lose sight of the forest for the trees. There is a need to support a qualitative analysis of the duplicated code. In this paper we propose a number of visualizations of duplicated source elements that support reengineers in answering questions, e.g., which parts of the system are connected by copied code or which parts of the system are copied the most.
Index Terms:
Code duplication detection, code visualization, polymetric views
Citation:
Matthias Rieger, Stéphane Ducasse, Michele Lanza, "Insights into System-Wide Code Duplication," wcre, pp.100-109, 11th Working Conference on Reverse Engineering (WCRE 2004), 2004