Skip to content

Commit

Permalink
Apply feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
rickie committed Jun 8, 2022
1 parent 11797aa commit 911e2cc
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 911e2cc

Please sign in to comment.