mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
[java-intentions] IDEA-363734 "Make Xxx impelent Yyy" quick fix inserts @NotNull
(cherry picked from commit 4e9a3f94cf1aedadd0b2c4699e168ccb3be0e405) IJ-CR-150708 GitOrigin-RevId: ced9d4595e513387ebf996bf8dd0894877ef0f3e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9a6c3e865e
commit
d2d87a71f3
@@ -153,7 +153,8 @@ public class ExtendsListFix extends LocalQuickFixAndIntentionActionOnPsiElement
|
||||
else {
|
||||
anchor = referenceElements[position - 1];
|
||||
}
|
||||
PsiJavaCodeReferenceElement classReferenceElement = JavaPsiFacade.getElementFactory(project).createReferenceElementByType(myTypeToExtendFrom);
|
||||
PsiJavaCodeReferenceElement classReferenceElement = JavaPsiFacade.getElementFactory(project)
|
||||
.createReferenceElementByType(myTypeToExtendFrom.annotate(TypeAnnotationProvider.EMPTY));
|
||||
PsiElement element;
|
||||
if (anchor == null) {
|
||||
if (referenceElements.length == 0) {
|
||||
|
||||
Reference in New Issue
Block a user