Skip to content

Commit

Permalink
Add some more @injects.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 500829600
  • Loading branch information
graememorgan authored and Error Prone Team committed Jan 10, 2023
1 parent b7e2cd7 commit d347234
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
import java.util.Map;
import java.util.Set;
import java.util.concurrent.atomic.AtomicBoolean;
import javax.inject.Inject;
import javax.lang.model.element.Modifier;
import javax.lang.model.element.Name;

Expand Down Expand Up @@ -153,6 +154,7 @@ public final class UnusedMethod extends BugChecker implements CompilationUnitTre

private final ImmutableSet<String> additionalExemptingMethodAnnotations;

@Inject
public UnusedMethod(ErrorProneFlags errorProneFlags) {
this.additionalExemptingMethodAnnotations =
errorProneFlags
Expand Down

0 comments on commit d347234

Please sign in to comment.