diff --git a/platform/lang-api/src/com/intellij/codeInspection/LocalInspectionTool.java b/platform/lang-api/src/com/intellij/codeInspection/LocalInspectionTool.java index 37136fe71c9c..bd377a1d671c 100644 --- a/platform/lang-api/src/com/intellij/codeInspection/LocalInspectionTool.java +++ b/platform/lang-api/src/com/intellij/codeInspection/LocalInspectionTool.java @@ -32,6 +32,7 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; public abstract class LocalInspectionTool extends InspectionProfileEntry { + public static final LocalInspectionTool[] EMPTY_ARRAY = new LocalInspectionTool[0]; private static final Logger LOG = Logger.getInstance("#" + LocalInspectionTool.class.getName()); /** diff --git a/platform/testFramework/src/com/intellij/testFramework/LightPlatformTestCase.java b/platform/testFramework/src/com/intellij/testFramework/LightPlatformTestCase.java index 0cd74646ce5d..0800522362de 100644 --- a/platform/testFramework/src/com/intellij/testFramework/LightPlatformTestCase.java +++ b/platform/testFramework/src/com/intellij/testFramework/LightPlatformTestCase.java @@ -427,7 +427,7 @@ public abstract class LightPlatformTestCase extends UsefulTestCase implements Da } protected LocalInspectionTool[] configureLocalInspectionTools() { - return new LocalInspectionTool[0]; + return LocalInspectionTool.EMPTY_ARRAY; } @Override diff --git a/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/LightIdeaTestFixtureImpl.java b/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/LightIdeaTestFixtureImpl.java index 57231756d355..0a13e332fd28 100644 --- a/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/LightIdeaTestFixtureImpl.java +++ b/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/LightIdeaTestFixtureImpl.java @@ -48,7 +48,7 @@ class LightIdeaTestFixtureImpl extends BaseFixture implements LightIdeaTestFixtu super.setUp(); LightPlatformTestCase.initApplication(new MyDataProvider()); - LightPlatformTestCase.doSetup(myProjectDescriptor, new LocalInspectionTool[0], null); + LightPlatformTestCase.doSetup(myProjectDescriptor, LocalInspectionTool.EMPTY_ARRAY, null); ((InjectedLanguageManagerImpl)InjectedLanguageManager.getInstance(getProject())).pushInjectors(); storeSettings(); }