Seach: how to for subclasses and method overrides
I would like to search for subclasses of a base class that do not override a method from the base class.
I have some ugly, legacy, code that performs a complex operation in the base class, and most subclasses override the method with a simple 'return false'.
Can anyone suggest a structural or regular expression pattern to use to locat subclasses not overriding a method?
Please sign in to leave a comment.
Can't you just go to the base class's method and say "View => Method Hierarchy"?
The subclasses that are marked with a "-" instead of "+" do not override the method.
Dave Levitt wrote:
Thanks - I've been using IDEA since version 3.x, and I've never needed to look at code that way