Inspectopedia
 
2024.3

Field can be made 'static'

Warning
New
Last modified: 03 December 2024

Reports instance variables that can safely be made static. A field can be static if it is declared final and initialized with a constant.

Example:

The inspection does not report final fields that can be implicitly written. Use the "Annotations" button to modify the list of annotations that assume implicit field write.