Skip to content

Commit 080411e

Browse files
sergeykadError Prone Team
authored and
Error Prone Team
committed
Added exempting variable annotations
Partially fixes #2881 Fixes #2947 COPYBARA_INTEGRATE_REVIEW=#2947 from sergeykad:unused_variable a41b7e3 PiperOrigin-RevId: 567376567
1 parent 737dec0 commit 080411e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/java/com/google/errorprone/bugpatterns/UnusedVariable.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ public final class UnusedVariable extends BugChecker implements CompilationUnitT
145145
"org.openqa.selenium.support.FindBy",
146146
"org.openqa.selenium.support.FindBys",
147147
"org.apache.beam.sdk.transforms.DoFn.TimerId",
148-
"org.apache.beam.sdk.transforms.DoFn.StateId");
148+
"org.apache.beam.sdk.transforms.DoFn.StateId",
149+
"org.springframework.boot.test.mock.mockito.MockBean");
149150

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

0 commit comments

Comments
 (0)