revert optimization: parameter types are compared for language level < 1.8

This commit is contained in:
Anna Kozlova
2016-06-24 15:33:37 +03:00
parent bb7d889d9c
commit 951cdba765
@@ -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);