Non-constant field with upper-case name
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.
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023