Skip to content

Commit

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

COPYBARA_INTEGRATE_REVIEW=#4060 from PicnicSupermarket:sschroevers/flag-unused-refaster-template-parameters 3fe5040
PiperOrigin-RevId: 565435903
  • Loading branch information
Stephan202 authored and Error Prone Team committed Sep 14, 2023
1 parent d7f112e commit 5a05839
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 5a05839

Please sign in to comment.