Back to Intellij Community

NoopMethodInAbstractClass

java/java-impl/resources/inspectionDescriptions/NoopMethodInAbstractClass.html

2025.3-rc-2296 B
Original Source

Reports no-op (for "no operation") methods in abstract classes.

It is usually a better design to make such methods abstract themselves so that classes inheriting these methods provide their implementations.

Example:

abstract class Test {
    protected void doTest() {
    }
  }