Solved

searching for unreferenced classes

Posted on 2000-03-10
3
233 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 2

Accepted Solution

by:
meming earned 15 total points
ID: 2605615
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
ID: 2607427
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
ID: 2628692
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
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 learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

763 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