mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
allow single imports of methods with the same name (IDEA-89144)
This commit is contained in:
+6
-1
@@ -78,7 +78,12 @@ public class AddSingleMemberStaticImportAction extends PsiElementBaseIntentionAc
|
||||
}
|
||||
}
|
||||
}
|
||||
if (importList.findSingleImportStatement(refExpr.getReferenceName()) == null) {
|
||||
final PsiImportStatementBase importStatement = importList.findSingleImportStatement(refExpr.getReferenceName());
|
||||
if (importStatement == null) {
|
||||
return qName;
|
||||
}
|
||||
final PsiElement resolve = importStatement.resolve();
|
||||
if (resolve instanceof PsiMember && ((PsiMember)resolve).getContainingClass() != aClass) {
|
||||
return qName;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user