Solved

searching for unreferenced classes

Posted on 2000-03-10
3
224 Views
Last Modified: 2008-09-25
Are there any tools out there that will search source code in packages for unreferenced classes? We have about 200 classes and I am not convinced that we are actually using all of them. Ideally, I'd like a tool that just spits out the names of all classes that are not referenced in some way by the other classes (minus the main of course).
0
Comment
Question by:fmaritato
3 Comments
 
LVL 2

Accepted Solution

by:
meming earned 15 total points
Comment Utility
Try JAX from IBM Alphaworks:
http://www.alphaworks.ibm.com/tech/JAX

"JAX, which is written in Java, is a Java application packaging tool that reduces the distribution size of a Java application. This means JAX collects the class files that  comprise a given application and takes out only those elements in the class files  that are not needed to execute the application. The result is a smaller "executable."  With all optimization techiques currently done by JAX, an estimated 30%-50%  reduction of the original application size is feasible. "
0
 
LVL 5

Expert Comment

by:mbormann
Comment Utility
We have the same problem as we are going through a upgrade but the crux  of the matter is that if there si a Thread called Tracker and it's now useless,but it's still referred to in some code,JAX won't spit it out .
It's static so practically you would have to keep 1 guy assigned to this task as we did.

Result we cut down on 17 unnecessary Threads and 173 classes plus many useless methods , using both JAX and manual stuff.JAX did 55% of the job,though I have never used that.
0
 
LVL 1

Author Comment

by:fmaritato
Comment Utility
Thanks. JAX is pretty clunky, and I was kinda hoping for a tool that would just analyze my source files and tell me what to take out so I can optimize the actual written code, but this is good for now.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now