Skip to content

Commit

Permalink
Apply feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
rickie committed Nov 23, 2021
1 parent 1fab98b commit 965fb2f
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 965fb2f

Please sign in to comment.