simpler code in IDEA-127637 code completion utility should strip 'extends' wildcards from generic qualifiers of generated anonymous classes

This commit is contained in:
peter
2014-07-30 09:12:15 +02:00
parent c6e9895844
commit 5a27767210
@@ -477,11 +477,7 @@ public class GenericsUtil {
if (substituted instanceof PsiWildcardType) {
substituted = ((PsiWildcardType)substituted).getBound();
if (substituted instanceof PsiCapturedWildcardType) {
PsiType bound = ((PsiCapturedWildcardType)substituted).getLowerBound();
if (bound == null || bound == PsiType.NULL) {
bound = ((PsiCapturedWildcardType)substituted).getUpperBound();
}
substituted = bound;
substituted = ((PsiCapturedWildcardType)substituted).getWildcard().getBound();
}
if (substituted == null) substituted = TypeConversionUtil.typeParameterErasure(typeParam);
}