mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-18 12:31:26 +07:00
Analyze_Inspect code should work for notfair inspections
This commit is contained in:
@@ -20,6 +20,7 @@ import com.intellij.codeInsight.daemon.GroupNames;
|
||||
import com.intellij.codeInspection.BaseJavaLocalInspectionTool;
|
||||
import com.intellij.codeInspection.InspectionsBundle;
|
||||
import com.intellij.codeInspection.ex.PairedUnfairLocalInspectionTool;
|
||||
import com.siyeh.ig.imports.UnusedImportInspection;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -55,8 +56,9 @@ public class UnusedImportLocalInspection extends BaseJavaLocalInspectionTool imp
|
||||
return true;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public String getInspectionForBatchShortName() {
|
||||
return "UnusedImport";
|
||||
return new UnusedImportInspection().getShortName();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,6 +94,7 @@ public class UnusedSymbolLocalInspection extends BaseJavaLocalInspectionTool imp
|
||||
return true;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public String getInspectionForBatchShortName() {
|
||||
return UnusedDeclarationInspection.SHORT_NAME;
|
||||
|
||||
Reference in New Issue
Block a user