say I have Class1 that implements interface named Class1interface.
This interface is autowired via dependency injection and IoC into another class – name it Class2. Class2 uses SOME of the methods provided by Class1interface.
Say we use Spring notation:
class Class2 {
@Autowired
Class1interface;
// methods calls of Class1interface and application logic
}
How can I find out which methods of Class1interface/Class1 are used in Class2 without scrolling through the screen? Or how can I check whether this particular Class1interface method is used in Class2?
I know dodgy explanation, but I tried my best.
Thank You,
ctrl+shift+G while the cursor is on a method will show references to that method. This won’t get you a pretty report of class relationships, but you could look through the results of Class1.blah to see which methods in Class2 reference it.