mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
simlify ? super ? wildcard (IDEA-63765)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user