Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Oct 4, 2024
1 parent fb5e4c0 commit 911d1b0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
* <p>Generated code is usually a method reference that generates the
* {@link BeanInstanceSupplier}, but some shortcut can be used as well such as:
* <pre class="code">
* {@code InstanceSupplier.of(TheGeneratedClass::getMyBeanInstance);}
* InstanceSupplier.of(TheGeneratedClass::getMyBeanInstance);
* </pre>
*
* @author Phillip Webb
Expand Down Expand Up @@ -392,7 +392,8 @@ private GeneratedMethod generateGetInstanceSupplierMethod(Consumer<MethodSpec.Bu

private boolean isThrowingCheckedException(Executable executable) {
return Arrays.stream(executable.getGenericExceptionTypes())
.map(ResolvableType::forType).map(ResolvableType::toClass)
.map(ResolvableType::forType)
.map(ResolvableType::toClass)
.anyMatch(Exception.class::isAssignableFrom);
}

Expand Down

0 comments on commit 911d1b0

Please sign in to comment.