views:

46

answers:

2

I have a big list of classes, a lot of them are not used any more.

I know the entries class, I'd like to know all its child classes. I know read class binary would help, wondering whether there is any better way.

We are not using class.forName.

thanks.

+1  A: 

I'd rather use a static code analysis tool like:

These do not find dependencies, but find "dead code". And that's what you are trying to achieve as far as I understand.

Bozho
I tried UCDetector, it only show unused pieces of code within file, but not tell which class file is useless. Those class files are suppose to be referenced in various configuration files. For findbugs, I am not seeing any errors in my existing project. I guess I need to try the reflection. Thanks.
BlueDolphin
A: 

Check out Class Dependency Analyzer

Suresh Kumar