Skip to content

Commit 4ae60c2

Browse files
committed
Added exempting variable annotations
1 parent e79ab81 commit 4ae60c2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,10 @@ public final class UnusedVariable extends BugChecker implements CompilationUnitT
136136
"org.openqa.selenium.support.FindBy",
137137
"org.openqa.selenium.support.FindBys",
138138
"org.apache.beam.sdk.transforms.DoFn.TimerId",
139-
"org.apache.beam.sdk.transforms.DoFn.StateId");
139+
"org.apache.beam.sdk.transforms.DoFn.StateId",
140+
"org.mockito.Mock",
141+
"org.springframework.boot.test.mock.mockito.MockBean"
142+
);
140143

141144
private final ImmutableSet<String> methodAnnotationsExemptingParameters;
142145

0 commit comments

Comments
 (0)