未验证 提交 549f346d 编写于 作者: J Jan S 提交者: GitHub

fix: prevent NullPointerException and ConcurrentModificationException when...

fix: prevent NullPointerException and ConcurrentModificationException when renaming something (PR #1055)
上级 80a879bd
......@@ -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));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册