Skip to content

Commit a8172e2

Browse files
committed
Revert "Polish"
This reverts commit 0f61259.
1 parent 0f61259 commit a8172e2

File tree

1 file changed

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

1 file changed

+4
-2
lines changed

spring-boot-project/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)