I have a code block of about 1200 lines of code in my Activity. Is there a tool that looks at my code and finds some kind of similar duplicate of code that can be placed in one way? Like this:
onCreate(){ image1.startAnimation(am1) ; image2.startAnimation(am1) ; ..... image1.startAnimation(am1) ; image2.startAnimation(am1) ; }
I want to put the same code in one method, is there a way to automatically detect duplicate codes?
ERJAN source share