Hi all,
I suppose that question has been already posted before but I don't find a tool that answered my need.
I would like to clean my code by looking for unused methods -in particular in interfaces- and unused classes even they are public.
Do you know if some tools (free or commercial) are able to do this job ?
Thank in advance
Franck
Ira Baxter - 30 Oct 2004 21:04 GMT
> I suppose that question has been already posted before but I don't find a tool that answered my need.
>
> I would like to clean my code by looking for unused methods -in particular in interfaces- and unused classes even they are public.
>
> Do you know if some tools (free or commercial) are able to do this job ?
We offer a Java dead code detector/remover tool.
See http://www.semdesigns.com/Products/Tools.html.
It also find unused fields and variables.

Signature
Ira D. Baxter, Ph.D., CTO 512-250-1018
Semantic Designs, Inc. www.semdesigns.com
Fahd Shariff - 06 Nov 2004 13:15 GMT
In Eclipse, if you turn on the "Warnings" feature it tells you (by
underlining in yellow) which variables are unused. You can set this up
in your Eclipse Preferences. I'm not entirely sure if it can also tell
you about methods etc but its worth checking out.

Signature
Fahd Shariff
http://www.fahdshariff.cjb.net
"Let the code do the talking..."
Harry Wood - 10 Mar 2005 17:20 GMT
Yeah that's...
'Window' menu -> Preferences... -> Java --> Compiler --> 'Unused Code'
tab.
It doesn't tell you if a whole class is never used though.