mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ensure current language level for varargs parameter (IDEA-149975)
This commit is contained in:
@@ -557,6 +557,9 @@ public final class PsiUtil extends PsiUtilCore {
|
||||
!JavaVersionService.getInstance().isAtLeast(((PsiCapturedWildcardType)lastParmType).getContext(), JavaSdkVersion.JDK_1_8)) {
|
||||
lastParmType = ((PsiCapturedWildcardType)lastParmType).getWildcard();
|
||||
}
|
||||
if (lastParmType instanceof PsiClassType) {
|
||||
lastParmType = ((PsiClassType)lastParmType).setLanguageLevel(languageLevel);
|
||||
}
|
||||
for (int i = parms.length - 1; i < args.length; i++) {
|
||||
PsiType argType = args[i];
|
||||
if (argType == null || !function.isApplicable(lastParmType, argType, allowUncheckedConversion, i)) {
|
||||
|
||||
Reference in New Issue
Block a user