ensure synchronized access to dfependency cache

This commit is contained in:
Eugene Zhuravlev
2012-06-21 22:07:21 +02:00
parent 4613925914
commit 73430c02e1
@@ -133,7 +133,7 @@ public class ChangedConstantsDependencyProcessor {
final Ref<CacheCorruptedException> exRef = new Ref<CacheCorruptedException>(null);
processIdentifiers(psiSearchHelper, new PsiElementProcessor<PsiIdentifier>() {
@Override
public boolean execute(@NotNull PsiIdentifier identifier) {
public synchronized boolean execute(@NotNull PsiIdentifier identifier) {
try {
final PsiElement parent = identifier.getParent();
if (parent instanceof PsiReferenceExpression) {