cleanup capture upper bound detection

This commit is contained in:
Anna Kozlova
2015-06-08 11:24:27 +03:00
parent 539448df98
commit cfcdf78010
@@ -146,9 +146,6 @@ public class PsiCapturedWildcardType extends PsiType.Stub {
if (myExistential.isExtends() && myParameter == null) {
return bound;
}
else if (bound instanceof PsiCapturedWildcardType) {
return PsiWildcardType.createSuper(myContext.getManager(), ((PsiCapturedWildcardType)bound).getUpperBound());
}
else {
return myUpperBound;
}