Inspectopedia
 
2024.3

'static', non-'final' field

Warning
New
Last modified: 03 December 2024

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.