mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-87104 Code completion should remember and prefer chosen variants
This commit is contained in:
@@ -1186,11 +1186,11 @@ public class TypeConversionUtil {
|
||||
return PsiType.getJavaLangObject(typeParameter.getManager(), typeParameter.getResolveScope());
|
||||
}
|
||||
|
||||
public static PsiType erasure(PsiType type) {
|
||||
public static PsiType erasure(@Nullable PsiType type) {
|
||||
return erasure(type, PsiSubstitutor.EMPTY);
|
||||
}
|
||||
|
||||
public static PsiType erasure(final PsiType type, final PsiSubstitutor beforeSubstitutor) {
|
||||
public static PsiType erasure(@Nullable final PsiType type, final PsiSubstitutor beforeSubstitutor) {
|
||||
if (type == null) return null;
|
||||
return type.accept(new PsiTypeVisitor<PsiType>() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user