Skip to content

Commit

Permalink
Flag unused Refaster template parameters
Browse files Browse the repository at this point in the history
Fixes #4060

FUTURE_COPYBARA_INTEGRATE_REVIEW=#4060 from PicnicSupermarket:sschroevers/flag-unused-refaster-template-parameters 3fe5040
PiperOrigin-RevId: 563768655
  • Loading branch information
Stephan202 authored and Error Prone Team committed Sep 12, 2023
1 parent 7552251 commit 9eb3df3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ public final class UnnecessarilyVisible extends BugChecker implements MethodTree
VisitorState.memoize(
s ->
Stream.of(
"com.google.errorprone.refaster.annotation.AfterTemplate",
"com.google.errorprone.refaster.annotation.BeforeTemplate",
"com.google.inject.Inject",
"com.google.inject.Provides",
"com.google.inject.multibindings.ProvidesIntoMap",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ public final class UnusedVariable extends BugChecker implements CompilationUnitT
// TODO(ghm): Find a sensible place to dedupe this with UnnecessarilyVisible.
private static final ImmutableSet<String> ANNOTATIONS_INDICATING_PARAMETERS_SHOULD_BE_CHECKED =
ImmutableSet.of(
"com.google.errorprone.refaster.annotation.AfterTemplate",
"com.google.errorprone.refaster.annotation.BeforeTemplate",
"com.google.inject.Inject",
"com.google.inject.Provides",
"com.google.inject.multibindings.ProvidesIntoMap",
Expand Down

0 comments on commit 9eb3df3

Please sign in to comment.