Do tools exist which automatically find copy-and-paste code?

java.is.for.desktop picture java.is.for.desktop · Mar 11, 2010 · Viewed 19k times · Source

Are there tools out there which could automatically find copy-and-paste code among a set of files?

I was thinking of writing a script for this, which would just search for equal strings, but such script would find mostly irrelevant equalities. (Such as private final static ...).

Answer

msalib picture msalib · Mar 11, 2010

Yes, try the Copy Paste Detector.