mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-26 08:21:26 +07:00
same parameter value inspection should not warn if method is used in method reference expression (IDEA-207552)
This commit is contained in:
@@ -401,6 +401,7 @@ public class RefJavaUtilImpl extends RefJavaUtil {
|
||||
!PsiType.VOID
|
||||
.equals(LambdaUtil.getFunctionalInterfaceReturnType(getFunctionalInterfaceType((UCallableReferenceExpression)refExpression)))) {
|
||||
refMethod.setReturnValueUsed(true);
|
||||
refMethod.setParametersAreUnknown();
|
||||
addTypeReference(uFrom, returnType, refFrom.getRefManager());
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user