mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
simpler code in IDEA-127637 code completion utility should strip 'extends' wildcards from generic qualifiers of generated anonymous classes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user