Java
Non-constant field with upper-case name
Warning
New
Last modified: 03 December 2024 Reports non-static
non-final
fields whose names are all in upper case.
Such fields may cause confusion by breaking a common naming convention and are often used by mistake.
Example:
public static int THE_ANSWER = 42; //a warning here: final modifier is missing
A quick-fix that renames such fields is available only in the editor.
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
NonConstantFieldWithUpperCaseName
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Java, 243.23126 |
Thanks for your feedback!
Was this page helpful?