From a50f06bbc833aef2ad6917c0f7e449767907dee8 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Tue, 16 Sep 2014 10:45:20 +0200 Subject: [PATCH] =?UTF-8?q?cleanup=20=E2=80=94=20introduce=20var=20to=20av?= =?UTF-8?q?oid=20synchronized=20getter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../intellij/openapi/application/impl/ApplicationImpl.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/application/impl/ApplicationImpl.java b/platform/platform-impl/src/com/intellij/openapi/application/impl/ApplicationImpl.java index f4cd0abc66ae..4158139a4f0b 100644 --- a/platform/platform-impl/src/com/intellij/openapi/application/impl/ApplicationImpl.java +++ b/platform/platform-impl/src/com/intellij/openapi/application/impl/ApplicationImpl.java @@ -493,8 +493,9 @@ public class ApplicationImpl extends PlatformComponentManagerImpl implements App } public void load(@NotNull String configPath, @NotNull String optionsPath) throws IOException { - getStateStore().setOptionsPath(optionsPath); - getStateStore().setConfigPath(configPath); + IApplicationStore store = getStateStore(); + store.setOptionsPath(optionsPath); + store.setConfigPath(configPath); myIsFiringLoadingEvent = true; try { @@ -506,7 +507,7 @@ public class ApplicationImpl extends PlatformComponentManagerImpl implements App HeavyProcessLatch.INSTANCE.processStarted(); try { - getStateStore().load(); + store.load(); } catch (StateStorageException e) { throw new IOException(e.getMessage());