Skip to content

Commit

Permalink
Added exempting variable annotations
Browse files Browse the repository at this point in the history
Partially fixes #2881

Fixes #2947

COPYBARA_INTEGRATE_REVIEW=#2947 from sergeykad:unused_variable a41b7e3
PiperOrigin-RevId: 567376567
  • Loading branch information
sergeykad authored and Error Prone Team committed Sep 21, 2023
1 parent 737dec0 commit 080411e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ public final class UnusedVariable extends BugChecker implements CompilationUnitT
"org.openqa.selenium.support.FindBy",
"org.openqa.selenium.support.FindBys",
"org.apache.beam.sdk.transforms.DoFn.TimerId",
"org.apache.beam.sdk.transforms.DoFn.StateId");
"org.apache.beam.sdk.transforms.DoFn.StateId",
"org.springframework.boot.test.mock.mockito.MockBean");

// TODO(ghm): Find a sensible place to dedupe this with UnnecessarilyVisible.
private static final ImmutableSet<String> ANNOTATIONS_INDICATING_PARAMETERS_SHOULD_BE_CHECKED =
Expand Down

0 comments on commit 080411e

Please sign in to comment.