From c76bc66326d9ae6e67dfe5db0ceecb4f674d16c0 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Mon, 17 Dec 2012 17:39:33 +0100 Subject: [PATCH] IDEA-97492 (synchronized access to state storage macros) --- .../openapi/components/impl/stores/StateStorageManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/components/impl/stores/StateStorageManagerImpl.java b/platform/platform-impl/src/com/intellij/openapi/components/impl/stores/StateStorageManagerImpl.java index b728437b1948..75c70d08bc16 100644 --- a/platform/platform-impl/src/com/intellij/openapi/components/impl/stores/StateStorageManagerImpl.java +++ b/platform/platform-impl/src/com/intellij/openapi/components/impl/stores/StateStorageManagerImpl.java @@ -373,7 +373,7 @@ public abstract class StateStorageManagerImpl implements StateStorageManager, Di private static final Pattern MACRO_PATTERN = Pattern.compile("(\\$[^\\$]*\\$)"); @Nullable - public String expandMacros(final String file) { + public synchronized String expandMacros(final String file) { final Matcher matcher = MACRO_PATTERN.matcher(file); while (matcher.find()) { String m = matcher.group(1);