Partial redesign of Java software systems based on clone analysis
Magdalena Bałazińska, Ettore Merlo, Michel Dagenais et al. · Proceedings - Working Conference on Reverse Engineering · 2003
Code duplication, plausibly caused by copying source code and slightly modifying it, is often observed in large systems. Clone detection and documentation have been investigated by several researchers in past years. Recently, research focus has shifted towards the investigation of software and process restructuring actions based on clone detection. The paper presents a new redesign approach developed for Java software systems. The approach factorizes the common parts of cloned methods and parameterizes their differences using the strategy design pattern. The new entities created by such transformations are also decoupled from the original contexts of their use, thus facilitating reuse and increasing maintainability. The applicability and automation of the technique presented in the paper have been verified by partially redesigning JDK 1.1.5.
Cited by 78 works. doi:10.1109/wcre.1999.806971
Authors
References
- Design Patterns: Elements of Reusable Object-Oriented Software
- Compilers: Principles, Techniques, and Tools
- Clone detection using abstract syntax trees
- On finding duplication and near-duplication in large software systems
- Experiment on the automatic detection of function clones in a software system using metrics
- Identifying redundancy in source code using fingerprints
- Pattern Matching for Clone and Concept Detection
- Pattern matching for clone and concept detection
- Assessing the benefits of incorporating function clone detection in a development process
- Automated Program Recognition by Graph Parsing