diff --git a/core/src/main/java/com/google/errorprone/bugpatterns/MissingRefasterAnnotation.java b/core/src/main/java/com/google/errorprone/bugpatterns/MissingRefasterAnnotation.java index 84d07811421..5c24cdffbd6 100644 --- a/core/src/main/java/com/google/errorprone/bugpatterns/MissingRefasterAnnotation.java +++ b/core/src/main/java/com/google/errorprone/bugpatterns/MissingRefasterAnnotation.java @@ -53,7 +53,7 @@ public final class MissingRefasterAnnotation extends BugChecker implements Class @Override public Description matchClass(ClassTree tree, VisitorState state) { - long methodTypes = + long methodTypeCount = tree.getMembers().stream() .filter(member -> member.getKind() == Tree.Kind.METHOD) .map(MethodTree.class::cast) @@ -62,6 +62,6 @@ public Description matchClass(ClassTree tree, VisitorState state) { .distinct() .count(); - return methodTypes < 2 ? Description.NO_MATCH : buildDescription(tree).build(); + return methodTypeCount < 2 ? Description.NO_MATCH : buildDescription(tree).build(); } }