Skip to content

Commit 911d1b0

Browse files
committed
Polishing
1 parent fb5e4c0 commit 911d1b0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/aot/InstanceSupplierCodeGenerator.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
* <p>Generated code is usually a method reference that generates the
6868
* {@link BeanInstanceSupplier}, but some shortcut can be used as well such as:
6969
* <pre class="code">
70-
* {@code InstanceSupplier.of(TheGeneratedClass::getMyBeanInstance);}
70+
* InstanceSupplier.of(TheGeneratedClass::getMyBeanInstance);
7171
* </pre>
7272
*
7373
* @author Phillip Webb
@@ -392,7 +392,8 @@ private GeneratedMethod generateGetInstanceSupplierMethod(Consumer<MethodSpec.Bu
392392

393393
private boolean isThrowingCheckedException(Executable executable) {
394394
return Arrays.stream(executable.getGenericExceptionTypes())
395-
.map(ResolvableType::forType).map(ResolvableType::toClass)
395+
.map(ResolvableType::forType)
396+
.map(ResolvableType::toClass)
396397
.anyMatch(Exception.class::isAssignableFrom);
397398
}
398399

0 commit comments

Comments
 (0)