Inspectopedia Help

Abstract method overrides abstract method

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.

Inspection options

Option

Type

Default

Ignore methods with different Javadoc than their super methods

Checkbox

false

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Java, 233.SNAPSHOT

Last modified: 13 July 2023