Skip to content

Commit

Permalink
Apply feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
rickie committed Sep 2, 2022
1 parent fb1a544 commit 953d56f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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();
}
}

0 comments on commit 953d56f

Please sign in to comment.