mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup — introduce var to avoid synchronized getter
This commit is contained in:
+4
-3
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user