'static', non-'final' field
Reports non-final
static
fields.
A quick-fix is available to add the final
modifier to a non-final
static
field.
This inspection doesn't check fields' mutability. For example, adding the final
modifier to a field that has a value being set somewhere will cause a compilation error.
Use the Only report 'public' fields option so that the inspection reported only public
fields.
Inspection options
Option | Type | Default |
---|---|---|
Only report 'public' fields | Checkbox | true |
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023