Merge branch '3.4.x' into 3.5.x

This commit is contained in:
Phillip Webb
2025-07-22 11:09:15 +01:00
@@ -349,8 +349,10 @@ public final class LambdaSafe {
@Override
public boolean match(Class<C> callbackType, C callbackInstance, A argument, Object[] additionalArguments) {
ResolvableType type = ResolvableType.forClass(callbackType, callbackInstance.getClass());
return type.getGenerics().length == 1 && type.resolveGeneric() != null
&& type.resolveGeneric().isInstance(argument);
if (type.getGenerics().length == 1 && type.resolveGeneric() != null) {
return type.resolveGeneric().isInstance(argument);
}
return true;
}
}