From 9a8e82e631fbf86c463a369e33e0126f1102c56c Mon Sep 17 00:00:00 2001 From: Nikita Eshkeev Date: Tue, 9 Jun 2020 10:58:39 +0300 Subject: [PATCH] [codeInsight] IDEA-190678 Inspection to warn about unnecessary array creation in log call This patch makes RedundantArrayForVarargsCallInspection implement the CleanupLocalInspectionTool interface. Signed-off-by: Nikita Eshkeev GitOrigin-RevId: e4a60093a634f4cf4ac1ef9610fc148ac94b299a --- .../miscGenerics/RedundantArrayForVarargsCallInspection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/java-impl/src/com/intellij/codeInspection/miscGenerics/RedundantArrayForVarargsCallInspection.java b/java/java-impl/src/com/intellij/codeInspection/miscGenerics/RedundantArrayForVarargsCallInspection.java index 0d06bf221c09..e2c45dff9a5c 100644 --- a/java/java-impl/src/com/intellij/codeInspection/miscGenerics/RedundantArrayForVarargsCallInspection.java +++ b/java/java-impl/src/com/intellij/codeInspection/miscGenerics/RedundantArrayForVarargsCallInspection.java @@ -25,7 +25,7 @@ import static com.siyeh.ig.callMatcher.CallMatcher.exactInstanceCall; /** * @author ven */ -public class RedundantArrayForVarargsCallInspection extends AbstractBaseJavaLocalInspectionTool { +public class RedundantArrayForVarargsCallInspection extends AbstractBaseJavaLocalInspectionTool implements CleanupLocalInspectionTool { @Override public @NotNull PsiElementVisitor buildVisitor(@NotNull final ProblemsHolder holder, final boolean isOnTheFly) { return new RedundantArrayForVarargVisitor(holder);