From dd6bf76e92ab19c14db7eff1fa61ba2b53830c2b Mon Sep 17 00:00:00 2001 From: Ilana Radinsky Date: Tue, 13 Aug 2024 14:54:24 -0400 Subject: [PATCH] Remove unused import --- .../com/palantir/baseline/errorprone/StrictUnusedVariable.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/StrictUnusedVariable.java b/baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/StrictUnusedVariable.java index fb33ab1f6..b58c9dc4f 100644 --- a/baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/StrictUnusedVariable.java +++ b/baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/StrictUnusedVariable.java @@ -48,7 +48,6 @@ import static com.sun.source.tree.Tree.Kind.POSTFIX_INCREMENT; import static com.sun.source.tree.Tree.Kind.PREFIX_DECREMENT; import static com.sun.source.tree.Tree.Kind.PREFIX_INCREMENT; -import static com.sun.tools.javac.tree.JCTree.*; import com.google.auto.service.AutoService; import com.google.common.base.Ascii; @@ -673,7 +672,7 @@ private void renameByIndex(List trees) { state.reportMatch(buildDescription(unused) .setMessage(String.format( "The public method parameter '%s' is never read. Acknowledge an intentional occurrence by" - + " renaming the unused variable with a leading underscore, or remove the parameter.", + + " renaming the unused variable with a leading underscore, or remove the parameter.", varSymbol.name)) .addFix(fix.build()) .build());