mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[redundant throws] fix another race condition
GitOrigin-RevId: 3aac8e3c0e760f75307eb4260b09000546ce1665
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5d1724c05f
commit
9629bb5f5d
+7
-4
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.codeInspection.reference;
|
||||
|
||||
import com.intellij.lang.java.JavaLanguage;
|
||||
@@ -608,9 +608,12 @@ public class RefMethodImpl extends RefJavaElementImpl implements RefMethod {
|
||||
|
||||
public void updateThrowsList(PsiClassType exceptionType) {
|
||||
LOG.assertTrue(isInitialized());
|
||||
for (RefMethod refSuper : getSuperMethods()) {
|
||||
((RefMethodImpl)refSuper).updateThrowsList(exceptionType);
|
||||
}
|
||||
myManager.executeTask(() -> {
|
||||
for (RefMethod refSuper : getSuperMethods()) {
|
||||
refSuper.waitForInitialized();
|
||||
((RefMethodImpl)refSuper).updateThrowsList(exceptionType);
|
||||
}
|
||||
});
|
||||
synchronized (this) {
|
||||
List<String> unThrownExceptions = myUnThrownExceptions;
|
||||
if (unThrownExceptions != null) {
|
||||
|
||||
Reference in New Issue
Block a user