Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 238
  • Last Modified:

searching for unreferenced classes

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
fmaritato
Asked:
fmaritato
1 Solution
 
memingCommented:
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
 
mbormannCommented:
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
 
fmaritatoAuthor Commented:
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now