Skip to content

Commit 4c70f7f

Browse files
committed
Merge branch '3.5.x'
2 parents 4c72ce6 + 100c2fc commit 4c70f7f

File tree

1 file changed

+4
-2
lines changed
  • core/spring-boot/src/main/java/org/springframework/boot/util

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,10 @@ private static final class GenericTypeFilter<C, A> implements Filter<C, A> {
349349
@Override
350350
public boolean match(Class<C> callbackType, C callbackInstance, A argument, Object[] additionalArguments) {
351351
ResolvableType type = ResolvableType.forClass(callbackType, callbackInstance.getClass());
352-
return type.getGenerics().length == 1 && type.resolveGeneric() != null
353-
&& type.resolveGeneric().isInstance(argument);
352+
if (type.getGenerics().length == 1 && type.resolveGeneric() != null) {
353+
return type.resolveGeneric().isInstance(argument);
354+
}
355+
return true;
354356
}
355357

356358
}

0 commit comments

Comments
 (0)