Is there a way to generate a list of classes in a Java project that are no longer needed by any other classes in this project?
Here's a diagram illustrating the situation (I hope you enjoy the ASCII diagram, as I don't have enough advertising to use the image), where C and B depend on project A:
A / \ / \ CB
I started refactoring by moving the code from B to A so that it could share C and B. However, now when I am nearing the end of refactoring, I want to check if there are any classes that I moved to A, which can now be moved back to B (classes that are in A but not used by any code in A)
Is there any tool I can use to create a list of such classes for me?
cshanes
source share