[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 <nikita.eshkeev@jetbrains.com>

GitOrigin-RevId: e4a60093a634f4cf4ac1ef9610fc148ac94b299a
This commit is contained in:
Nikita Eshkeev
2020-06-09 11:33:17 +03:00
committed by intellij-monorepo-bot
parent 47b41f6465
commit 9a8e82e631
@@ -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);