From 499e65925cd36d10db7f2f8af629478dc2724abd Mon Sep 17 00:00:00 2001 From: Stephan Schroevers Date: Sat, 2 Sep 2023 19:13:55 +0200 Subject: [PATCH] Flag unused Refaster template parameters --- .../java/com/google/errorprone/bugpatterns/UnusedVariable.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/com/google/errorprone/bugpatterns/UnusedVariable.java b/core/src/main/java/com/google/errorprone/bugpatterns/UnusedVariable.java index cd41fac6081c..fa3c50bbbb4f 100644 --- a/core/src/main/java/com/google/errorprone/bugpatterns/UnusedVariable.java +++ b/core/src/main/java/com/google/errorprone/bugpatterns/UnusedVariable.java @@ -149,6 +149,8 @@ public final class UnusedVariable extends BugChecker implements CompilationUnitT // TODO(ghm): Find a sensible place to dedupe this with UnnecessarilyVisible. private static final ImmutableSet 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",