mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
revert optimization: parameter types are compared for language level < 1.8
This commit is contained in:
+1
-3
@@ -237,9 +237,7 @@ public class PsiMethodCallExpressionImpl extends ExpressionPsiElement implements
|
||||
PsiType ret,
|
||||
JavaResolveResult result,
|
||||
LanguageLevel languageLevel) {
|
||||
PsiSubstitutor substitutor = result instanceof MethodCandidateInfo && !PsiPolyExpressionUtil.isMethodCallTypeDependsOnInference(call, method)
|
||||
? ((MethodCandidateInfo)result).getSiteSubstitutor()
|
||||
: result.getSubstitutor();
|
||||
PsiSubstitutor substitutor = result.getSubstitutor();
|
||||
PsiType substitutedReturnType = substitutor.substitute(ret);
|
||||
if (substitutedReturnType == null) {
|
||||
return TypeConversionUtil.erasure(ret);
|
||||
|
||||
Reference in New Issue
Block a user