Skip to content

Commit 1511398

Browse files
java-team-github-botError Prone Team
authored and
Error Prone Team
committed
Updating the BugPattern summary for ConstantField to "Field name is CONSTANT_CASE, but field is not static and/or not final"
Making this change based on the suggestion from jackdt@ in b/142060789 PiperOrigin-RevId: 391679669
1 parent 9e37e5c commit 1511398

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/com/google/errorprone/bugpatterns/ConstantField.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
/** A {@link BugChecker}; see the associated {@link BugPattern} annotation for details. */
3838
@BugPattern(
3939
name = "ConstantField",
40-
summary = "Field name is CONSTANT_CASE, but field is not static and final",
40+
summary = "Fields with CONSTANT_CASE names should be both static and final",
4141
severity = SUGGESTION,
4242
tags = BugPattern.StandardTags.STYLE)
4343
public class ConstantField extends BugChecker implements VariableTreeMatcher {

0 commit comments

Comments
 (0)