same parameter value inspection should not report anything if value is not accessible in method context

This commit is contained in:
Dmitry Batkovich
2018-05-19 09:15:09 +03:00
parent 4b281c45d6
commit 1d07fecaf6
4 changed files with 26 additions and 11 deletions

View File

@@ -159,7 +159,7 @@ public class RefJavaUtilImpl extends RefJavaUtil{
}
if (refConstructor != null) {
refConstructor.updateParameterValues(psiParams);
refConstructor.updateParameterValues(psiParams, psiConstructor);
}
}
return refConstructor;
@@ -269,7 +269,7 @@ public class RefJavaUtilImpl extends RefJavaUtil{
PsiExpressionList argumentList = call.getArgumentList();
if (!argumentList.isEmpty()) {
refMethod.updateParameterValues(argumentList.getExpressions());
refMethod.updateParameterValues(argumentList.getExpressions(), psiMethod);
}
final PsiExpression psiExpression = call.getMethodExpression().getQualifierExpression();