mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 09:03:31 +07:00
EA-58014 (diagnostic)
This commit is contained in:
+9
-1
@@ -587,7 +587,15 @@ public class PsiJavaCodeReferenceElementImpl extends CompositePsiElement impleme
|
||||
if (parameterList != null) {
|
||||
text += parameterList.getText();
|
||||
}
|
||||
PsiJavaCodeReferenceElement ref = facade.getParserFacade().createReferenceFromText(text, getParent());
|
||||
|
||||
PsiJavaCodeReferenceElement ref;
|
||||
try {
|
||||
ref = facade.getParserFacade().createReferenceFromText(text, getParent());
|
||||
}
|
||||
catch (IncorrectOperationException e) {
|
||||
throw new IncorrectOperationException(e.getMessage() + " [qname=" + qName + " class=" + aClass + ";" + aClass.getClass().getName() + "]");
|
||||
}
|
||||
|
||||
((PsiJavaCodeReferenceElementImpl)ref).setAnnotations(annotations);
|
||||
getTreeParent().replaceChildInternal(this, (TreeElement)ref.getNode());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user