Reputation: 3637
Assuming I have method init()
in some MyBaseClass
.
Is there a way to quickly find overrides of this method in subclasses?
Sure, I can find throughout a project @Override void init
, but maybe there is a smarter way?
Upvotes: 23
Views: 9783
Reputation: 38
To only see overridden methods, highlight the superclass method, then press ctrl+alt+b
.
Upvotes: 0
Reputation: 593
Alternatively you can display the method hierarchy by selecting the method and then "Navigate -> Method hierarchy" (Ctrl+Shift+H).
(Pay attention to the symbol footnote: "(+) method is defined in this class", "(-) method is not defined in the class" and "(!) method must be defined since the class is not abstract")
Upvotes: 1