Inspectopedia Help

Method tries to override 'static' method of superclass

Reports static methods with a signature identical to a static method of a superclass. Such a method may look like an override when in fact it hides the method from the superclass because static methods in Java cannot be overridden.

Example:

class Parent { static void method(){} } class Example extends Parent { static void method(){} //warning }

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Java, 233.SNAPSHOT

Last modified: 13 July 2023