diff --git a/java/java-tests/testSrc/com/intellij/codeInspection/ex/InspectionProfileTest.java b/java/java-tests/testSrc/com/intellij/codeInspection/ex/InspectionProfileTest.java index 78fccd5557ac..72a7a909af57 100644 --- a/java/java-tests/testSrc/com/intellij/codeInspection/ex/InspectionProfileTest.java +++ b/java/java-tests/testSrc/com/intellij/codeInspection/ex/InspectionProfileTest.java @@ -325,11 +325,12 @@ public class InspectionProfileTest extends LightIdeaTestCase { InspectionToolWrapper toolWrapper = model.getInspectionTool("unused", getProject()); UnusedDeclarationInspectionBase tool = (UnusedDeclarationInspectionBase)toolWrapper.getTool(); UnusedSymbolLocalInspectionBase inspectionTool = tool.getSharedLocalInspectionTool(); - inspectionTool.setClassVisibility("none"); + inspectionTool.setClassVisibility(PsiModifier.PUBLIC); + inspectionTool.CLASS = false; model.commit(); String mergedText = "\n" + "