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 ?
Please sign in to leave a comment.
Could you please share a sample project to reproduce?
https://dl.dropboxusercontent.com/u/15764125/test.zip
You didn't enable the option to show transitive dependencies:
Results:
it works thank you very much !!!
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
I don't think you can skip it, it's a valid dependency and your project will fail to build if you remove D.
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