'static' method declared 'final'
Reports static methods that are marked as final
.
Such code might indicate an error or an incorrect assumption about the effect of the final
keyword. Static methods are not subject to runtime polymorphism, so the only purpose of the final
keyword used with static methods is to ensure the method will not be hidden in a subclass.
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023