IDEA-97492 (synchronized access to state storage macros)

This commit is contained in:
Roman Shevchenko
2012-12-17 17:49:25 +01:00
parent 3236805776
commit c76bc66326
@@ -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);