Skip to content

Commit 0f61259

Browse files
committed
Polish
1 parent 3968d31 commit 0f61259

File tree

1 file changed

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

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,11 +349,8 @@ 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-
if (type.getGenerics().length == 1 && type.resolveGeneric() != null) {
353-
return type.resolveGeneric().isInstance(argument);
354-
}
355-
356-
return true;
352+
return type.getGenerics().length == 1 && type.resolveGeneric() != null
353+
&& type.resolveGeneric().isInstance(argument);
357354
}
358355

359356
}

0 commit comments

Comments
 (0)