Inspectopedia
 
2024.3

Abstract method overrides abstract method

Warning
New
Last modified: 03 December 2024

Reports abstract methods that override abstract methods.

Such methods don't make sense because any concrete child class will have to implement the abstract method anyway.

Methods whose return types, exception declarations, annotations, or modifiers differ from the overridden method are not reported by this inspection.

Configure the inspection:

  • Use the Ignore methods with different Javadoc than their super methods option to ignore any abstract methods whose JavaDoc comment differs from their super method.