cleanup: make stacktrace more readable

GitOrigin-RevId: 1fe2ad7bd7a2348fd6d47e274f57f2c425546353
This commit is contained in:
Alexey Kudravtsev
2023-05-17 17:39:15 +02:00
committed by intellij-monorepo-bot
parent ccb13e03e7
commit 4f8fb45778
3 changed files with 3 additions and 3 deletions

View File

@@ -234,7 +234,7 @@ public abstract class HeavyPlatformTestCase extends UsefulTestCase implements Da
ApplicationManager.getApplication() == null ||
ApplicationManager.getApplication() instanceof MockApplication);
myCodeStyleSettingsTracker = isTrackCodeStyleChanges ? new CodeStyleSettingsTracker(CodeStyle::getDefaultSettings) : null;
myCodeStyleSettingsTracker = isTrackCodeStyleChanges ? new CodeStyleSettingsTracker(() -> CodeStyle.getDefaultSettings()) : null;
ourTestCase = this;
if (myProject != null) {
CodeStyle.setTemporarySettings(myProject, CodeStyle.createTestSettings());

View File

@@ -44,7 +44,7 @@ public final class LightIdeaTestFixtureImpl extends BaseFixture implements Light
myModule = setup.getSecond();
InjectedLanguageManagerImpl.pushInjectors(getProject());
myCodeStyleSettingsTracker = new CodeStyleSettingsTracker(this::getCurrentCodeStyleSettings);
myCodeStyleSettingsTracker = new CodeStyleSettingsTracker(() -> getCurrentCodeStyleSettings());
application.setDataProvider(new TestDataProvider(getProject()));
myOldSdks = new SdkLeakTracker();

View File

@@ -82,7 +82,7 @@ public abstract class MavenImportingTestCase extends MavenTestCase {
super.setUp();
myCodeStyleSettingsTracker = new CodeStyleSettingsTracker(this::getCurrentCodeStyleSettings);
myCodeStyleSettingsTracker = new CodeStyleSettingsTracker(() -> getCurrentCodeStyleSettings());
File settingsFile =
MavenWorkspaceSettingsComponent.getInstance(myProject).getSettings().generalSettings.getEffectiveGlobalSettingsIoFile();