mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
can be final: really fix race condition
GitOrigin-RevId: 3142410d7cf5b2efa8b35c31870b3b30e16583ad
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8f228eddfa
commit
38d68fb1fc
+1
@@ -62,6 +62,7 @@ class CanBeFinalAnnotator extends RefGraphAnnotatorEx {
|
||||
if (element instanceof PsiMethod) {
|
||||
PsiMethod psiMethod = (PsiMethod)element;
|
||||
RefClass aClass = refMethod.getOwnerClass();
|
||||
if (aClass != null) aClass.waitForInitialized();
|
||||
if (refMethod.isConstructor() || refMethod.isAbstract() || refMethod.isStatic() ||
|
||||
PsiModifier.PRIVATE.equals(refMethod.getAccessModifier()) || (aClass != null && aClass.isAnonymous()) ||
|
||||
(aClass != null && aClass.isInterface())) {
|
||||
|
||||
Reference in New Issue
Block a user