Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / March 2005

Tip: Looking for answers? Try searching our database.

unused methods and classes

Thread view: 
Fx - 27 Oct 2004 15:02 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.