mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
inspections: ensure local paired inspection uses display name of the global one
GitOrigin-RevId: 8dfb2236e2ae4016024102e8195e5ce0df954500
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9fc8e6ed59
commit
f9f5d09f87
@@ -51,12 +51,6 @@ class AccessCanBeTightenedInspection extends AbstractBaseJavaLocalInspectionTool
|
||||
return GroupNames.VISIBILITY_GROUP_NAME;
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public String getDisplayName() {
|
||||
return "Member access can be tightened";
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public String getShortName() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Fix all 'Member access can be tightened' problems in file" "true"
|
||||
// "Fix all 'Declaration access can be weaker' problems in file" "true"
|
||||
class Test {
|
||||
private int myCounter;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Fix all 'Member access can be tightened' problems in file" "true"
|
||||
// "Fix all 'Declaration access can be weaker' problems in file" "true"
|
||||
class Test {
|
||||
<caret>public int myCounter;
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ import com.intellij.openapi.projectRoots.Sdk;
|
||||
import com.intellij.psi.*;
|
||||
import com.intellij.psi.impl.source.tree.injected.MyTestInjector;
|
||||
import com.intellij.testFramework.IdeaTestUtil;
|
||||
import com.intellij.testFramework.InspectionTestUtil;
|
||||
import com.siyeh.ig.style.UnnecessaryFullyQualifiedNameInspection;
|
||||
import org.jetbrains.annotations.Nls;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
@@ -48,7 +49,7 @@ public class FixAllQuickfixTest extends LightQuickFixParameterizedTestCase {
|
||||
@Override
|
||||
protected void setUp() throws Exception {
|
||||
super.setUp();
|
||||
enableInspectionTool(new GlobalInspectionToolWrapper(new VisibilityInspection()));
|
||||
enableInspectionTool(new GlobalInspectionToolWrapper(InspectionTestUtil.instantiateTool(VisibilityInspection.class)));
|
||||
enableInspectionTool(new UnusedDeclarationInspection(true));
|
||||
new MyTestInjector(getPsiManager()).injectAll(getTestRootDisposable());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user