Inspectopedia
 
2024.3

Non-final field in 'enum'

Warning
New
Last modified: 03 December 2024

Reports non-final fields in enumeration types. Non-final fields introduce global mutable state, which is generally considered undesirable.

Example:

After the quick-fix is applied:

Use the `Ignore fields that cannot be made 'final'` option to only warn on fields that can be made final using the quick-fix.