mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
PsiClassReferenceType#equalsToText: check simple name first
This commit is contained in:
@@ -82,7 +82,9 @@ public class PsiClassReferenceType extends PsiClassType.Stub {
|
||||
|
||||
@Override
|
||||
public boolean equalsToText(@NotNull String text) {
|
||||
return Comparing.equal(text, getCanonicalText());
|
||||
PsiJavaCodeReferenceElement reference = getReference();
|
||||
String name = reference.getReferenceName();
|
||||
return (name == null || text.contains(name)) && Comparing.equal(text, getCanonicalText());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user