IDEA-87104 Code completion should remember and prefer chosen variants

This commit is contained in:
peter
2012-06-07 15:47:16 +02:00
parent db8aadc5e3
commit afee1a2277
6 changed files with 54 additions and 23 deletions
@@ -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