Back to Intellij Community

UpperCaseFieldNameNotConstant

java/java-impl/resources/inspectionDescriptions/UpperCaseFieldNameNotConstant.html

2025.3-rc-2350 B
Original Source

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.