[java-intentions] RemoveAllUnusedImportsFix: support static imports; tests

Fixes IDEA-353352 "Remove unused imports" does nothing for static imports

GitOrigin-RevId: ae20983342012414568af9ca68db67994832443c
This commit is contained in:
Tagir Valeev
2024-06-27 17:56:30 +02:00
committed by intellij-monorepo-bot
parent 209c9d230e
commit 2909ce4932
8 changed files with 74 additions and 4 deletions

View File

@@ -0,0 +1,17 @@
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.codeInsight.daemon.quickFix;
import com.intellij.codeInspection.unusedImport.UnusedImportInspection;
public final class RemoveAllUnusedImportsTest extends LightQuickFixParameterizedTestCase {
@Override
protected void setUp() throws Exception {
super.setUp();
enableInspectionTool(new UnusedImportInspection());
}
@Override
protected String getBasePath() {
return "/codeInsight/highlight/remove_imports";
}
}