mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
EA-40714 - assert: PsiFileImpl.getStubTree
This commit is contained in:
+6
-1
@@ -32,7 +32,12 @@ public class AnnotatedElementsSearcher implements QueryExecutor<PsiModifierListO
|
||||
final PsiClass annClass = p.getAnnotationClass();
|
||||
assert annClass.isAnnotationType() : "Annotation type should be passed to annotated members search";
|
||||
|
||||
final String annotationFQN = annClass.getQualifiedName();
|
||||
final String annotationFQN = ApplicationManager.getApplication().runReadAction(new Computable<String>() {
|
||||
@Override
|
||||
public String compute() {
|
||||
return annClass.getQualifiedName();
|
||||
}
|
||||
});
|
||||
assert annotationFQN != null;
|
||||
|
||||
final PsiManagerImpl psiManager = (PsiManagerImpl)annClass.getManager();
|
||||
|
||||
Reference in New Issue
Block a user