Dependency analyzer depth

Answered

I have a question about Analyze -> Analyze Dependencies. When I run it on my class B it show me that it depends on class A because in class B I call methods test() from class A but it doesn't show me class C. In class A in method  test() I call method from class C. Is there any way in Idea to get all dependencies in depth ?

0
7 comments

Could you please share a sample project to reproduce?

0

You didn't enable the option to show transitive dependencies:

Results:

0
Avatar
Permanently deleted user

it works thank you very much !!!

0
Avatar
Permanently deleted user

One more question. I see that this tool will find dependencies even if method not used. For example: We have one more class D with one method testD() and in class B we we have one more method useD() (which not called from A) which call testD() from D class. Is there any way to skip class D ? Here is link to new  example https://dl.dropboxusercontent.com/u/15764125/test.zip

0

I don't think you can skip it, it's a valid dependency and your project will fail to build if you remove D.

0
Avatar
Permanently deleted user

I want to use this tool to find all classes with methods which are used starting from class A but looks like this tool will not help we to do this  

0

Please sign in to leave a comment.