开发者

How to find out all the dependency class names of one class?

开发者 https://www.devze.com 2022-12-26 04:39 出处:网络
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 clas开发者_如何转开发s binary would help, wondering

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 clas开发者_如何转开发s binary would help, wondering whether there is any better way.

We are not using class.forName.

thanks.


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

  • UCDetector
  • FindBugs

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


Check out Class Dependency Analyzer

0

精彩评论

暂无评论...
验证码 换一张
取 消