This commit is contained in:
Alexey Kudravtsev
2011-03-05 11:56:06 +03:00
parent 9e6f6a4f5f
commit e758bb67fd
3 changed files with 3 additions and 2 deletions
@@ -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());
/**
@@ -427,7 +427,7 @@ public abstract class LightPlatformTestCase extends UsefulTestCase implements Da
}
protected LocalInspectionTool[] configureLocalInspectionTools() {
return new LocalInspectionTool[0];
return LocalInspectionTool.EMPTY_ARRAY;
}
@Override
@@ -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();
}