eliminateWildcards: process captured same as normal wildcard

This commit is contained in:
Anna Kozlova
2015-05-29 14:48:26 +02:00
parent 719cec517c
commit 8164a3e4b7
@@ -509,7 +509,7 @@ public class GenericsUtil {
final PsiType bound = ((PsiWildcardType)type).getBound();
return eliminateWildcards(bound != null ? bound : ((PsiWildcardType)type).getExtendsBound(), false);//object
} else if (type instanceof PsiCapturedWildcardType && !eliminateInTypeArguments) {
return ((PsiCapturedWildcardType)type).getUpperBound();
return eliminateWildcards(((PsiCapturedWildcardType)type).getUpperBound(), false);
}
return type;
}