Goltsev Eugene
Goltsev Eugene

Reputation: 3637

IntelliJ IDEA find method overrides

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

Answers (3)

Jules Pollender
Jules Pollender

Reputation: 38

To only see overridden methods, highlight the superclass method, then press ctrl+alt+b.

Upvotes: 0

becke-ch
becke-ch

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

CrazyCoder
CrazyCoder

Reputation: 402403

Please use Navigate | Implementations.

Upvotes: 27

Related Questions