Skip to content

Commit

Permalink
Remove unnecessary check for suppressed condition.
Browse files Browse the repository at this point in the history
The check is already performed in the caller of matchClass(). See discussion in a706e8d.

PiperOrigin-RevId: 663039218
  • Loading branch information
java-team-github-bot authored and Error Prone Team committed Aug 14, 2024
1 parent ca30e07 commit b5e6041
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class AutoValueBoxedValues extends BugChecker implements ClassTreeMatcher

@Override
public Description matchClass(ClassTree tree, VisitorState state) {
if (!hasAnnotation(tree, AutoValue.class.getName(), state) || isSuppressed(tree, state)) {
if (!hasAnnotation(tree, AutoValue.class.getName(), state)) {
return NO_MATCH;
}

Expand Down

0 comments on commit b5e6041

Please sign in to comment.