Browse Source

Merge branch '3.4.x' into 3.5.x

pull/46511/head
Phillip Webb 8 months ago
parent
commit
8a3b81e258
  1. 7
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/util/LambdaSafe.java

7
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/util/LambdaSafe.java

@ -349,11 +349,8 @@ public final class LambdaSafe { @@ -349,11 +349,8 @@ public final class LambdaSafe {
@Override
public boolean match(Class<C> callbackType, C callbackInstance, A argument, Object[] additionalArguments) {
ResolvableType type = ResolvableType.forClass(callbackType, callbackInstance.getClass());
if (type.getGenerics().length == 1 && type.resolveGeneric() != null) {
return type.resolveGeneric().isInstance(argument);
}
return true;
return type.getGenerics().length == 1 && type.resolveGeneric() != null
&& type.resolveGeneric().isInstance(argument);
}
}

Loading…
Cancel
Save