Skip to content

Commit 98d83bf

Browse files
cpovirkError Prone Team
authored andcommitted
Avoid touching parameters of @Subscribe methods.
PiperOrigin-RevId: 784640014
1 parent 13d46e7 commit 98d83bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ public final class UnusedVariable extends BugChecker implements CompilationUnitT
174174
UnusedVariable(ErrorProneFlags flags, WellKnownKeep wellKnownKeep) {
175175
this.methodAnnotationsExemptingParameters =
176176
ImmutableSet.<String>builder()
177+
.add("com.google.common.eventbus.Subscribe")
177178
.add("org.robolectric.annotation.Implementation")
178179
.addAll(flags.getListOrEmpty("Unused:methodAnnotationsExemptingParameters"))
179180
.build();

0 commit comments

Comments
 (0)