XpdWiki

FrontPage
RecentChanges
XtC
FindPage
PageIndex
XpApprentices

Set your name in
UserPreferences

Edit this page

Referenced by
Xtc20030107
SourceForge
IvanMoore
Xtc20020806
RefactoringNoses




JSPWiki v2.0.52


JavaCondenser


Condenser is a tool that finds duplicated methods in Java code.

(so far, two prototypes built: version 1.02 works on class files, version 1.05 works on source files.)

see also RefactoringNoses.

see http://condenser.sf.net

Notes moved to SourceForge


fixed
  • in the code, a function hash has been defined unnecessarily (there is a built in one that does the same - thanks to PhilDawes and DaveKirby for pointing this out)
  • code can be slightly cleaner using "from future import nested_scopes" - thanks to PhilDawes for pointing this out)
  • code can be slightly cleaner by using "list comprehensions"

BTW - thanks to NatPryce for telling me about SableCC - an easy to use ParserGenerator.

IvanM


Ivan, you might want to try replacing line 126 with the following: print method print("=" * len(repr(method))) for duplicateLocation in methodsTablemethod?: print duplicateLocation print

--AdewaleOshineye

Thanks AdewaleOshineye - this definitely improves the output from JavaCondenser; I'll include this in the next version. IvanM³host³³date³January 3, 2003³agent³Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90)³JavaCondenser


Edit this page   More info...   Attach file...
This page last changed on 27-Feb-2003 17:37:39 GMT by unknown.