fix: prevent NullPointerException and ConcurrentModificationException when renaming something (PR #1055)

This commit is contained in:
Jan S
2020-12-18 15:12:32 +01:00
committed by GitHub
parent 80a879bddf
commit 549f346d5e
@@ -23,7 +23,7 @@ public class CodeIndex {
values.add(value);
}
public void removeForCls(JavaClass cls) {
public synchronized void removeForCls(JavaClass cls) {
values.removeIf(v -> v.getJavaNode().getTopParentClass().equals(cls));
}