simlify ? super ? wildcard (IDEA-63765)

This commit is contained in:
anna
2012-04-19 12:41:39 +02:00
parent f4cf77fb68
commit 817fc5aae4
5 changed files with 6 additions and 3 deletions
@@ -156,6 +156,7 @@ public class PsiSubstitutorImpl implements PsiSubstitutor {
if (wildcardType.isExtends() != wildcard.isExtends()) {
return wildcard.isBounded() ? PsiWildcardType.createUnbounded(wildcardType.getManager()) : newBound;
}
if (!wildcard.isBounded()) return PsiWildcardType.createUnbounded(wildcardType.getManager());
}
return PsiWildcardType.changeBound(wildcardType, newBound);