I’m currently working with a fairly large java codebase, it’s been about six months since they had an object oriented sofware engineer working on it. So in the mean time the local java team (mostly ex mainframe programmers) have made changes and left cruft lying around.
I know for a fact that there are whole chunks of code (classes and methods) that are never called. However I can’t find any good tools to fix this. I’m using the eclipse IDE, and it can find unusable code for me on a method by method basis. However, I’m looking for something I can point at the 20M of sourcecode and have it produce a list of all unused methods, classes and instance variables.
I have a trial version of IntelliJIDEA here as well, but I can’t see a way of doing it there either.
Does anyone in the java.blogs community know of a tool (free or cheapish) that could do this for me?