Refactoring Clones: An Optimization Problem

Giri Panamoottil Krishnan, Nikolaos Tsantalis

2013 · 14 citations · 11 references

Concepts

Abstract

The refactoring of software clones is achieved by extracting their common functionality into a single method. Any differences in identifiers and literals between the clones have to become parameters in the extracted method. Obviously, a large number of differences leads to an extracted method with limited reusability due to the large number of introduced parameters. We support that minimizing the differences between the matched statements of clones is crucial for the purpose of refactoring and propose an algorithm that treats the matching process as an optimization problem.

References

11