mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEADEV-34668
This commit is contained in:
@@ -158,7 +158,9 @@ public class SliceUtil {
|
||||
for (final PsiMethod containingMethod : superMethods) {
|
||||
if (!MethodReferencesSearch.search(containingMethod).forEach(new Processor<PsiReference>() {
|
||||
public boolean process(final PsiReference reference) {
|
||||
if (!processed.add(reference)) return true;
|
||||
synchronized (processed) {
|
||||
if (!processed.add(reference)) return true;
|
||||
}
|
||||
PsiElement element = reference.getElement().getParent();
|
||||
if (!(element instanceof PsiCall)) return true;
|
||||
final PsiCall call = (PsiCall)element;
|
||||
|
||||
@@ -43,7 +43,7 @@ public class CommonProcessors {
|
||||
return true;
|
||||
}
|
||||
|
||||
public <T> T[] toArray(T[] a) {
|
||||
public T[] toArray(T[] a) {
|
||||
return myCollection.toArray(a);
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ public class CommonProcessors {
|
||||
return true;
|
||||
}
|
||||
|
||||
public <T> T[] toArray(T[] a) {
|
||||
public T[] toArray(T[] a) {
|
||||
return myCollection.toArray(a);
|
||||
}
|
||||
|
||||
@@ -85,7 +85,12 @@ public class CommonProcessors {
|
||||
}
|
||||
|
||||
public boolean process(T t) {
|
||||
return !processed.add(t) || myDelegate.process(t);
|
||||
synchronized (processed) {
|
||||
if (!processed.add(t)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return myDelegate.process(t);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user