Method can be made 'static'
Reports methods which may safely be made static
.
A method may be static
if it is not synchronized
, it does not reference any of its class' instance methods and instance fields, and it is not overridden in a subclass.
Inspection options
Option | Type | Default |
---|---|---|
Ignore trait methods | Checkbox | true |
Only check final or private methods | Checkbox | false |
Ignore empty methods | Checkbox | true |
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Groovy, 233.SNAPSHOT |
Last modified: 13 July 2023