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

FUTURE_COPYBARA_INTEGRATE_REVIEW=#2947 from sergeykad:unused_variable a41b7e3
PiperOrigin-RevId: 567318426
  • Loading branch information
sergeykad authored and Error Prone Team committed Sep 21, 2023
1 parent f3a2bf8 commit cd1e95b
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 cd1e95b

Please sign in to comment.