diff --git a/module/spring-boot-jpa/src/main/java/org/springframework/boot/jpa/EntityManagerFactoryBuilder.java b/module/spring-boot-jpa/src/main/java/org/springframework/boot/jpa/EntityManagerFactoryBuilder.java index d9251fb9635..65a56b7e13f 100644 --- a/module/spring-boot-jpa/src/main/java/org/springframework/boot/jpa/EntityManagerFactoryBuilder.java +++ b/module/spring-boot-jpa/src/main/java/org/springframework/boot/jpa/EntityManagerFactoryBuilder.java @@ -74,7 +74,7 @@ public class EntityManagerFactoryBuilder { private @Nullable List persistenceUnitPostProcessors; - private @Nullable Supplier requireBootstrapExecutorExceptionSupplier; + private @Nullable Supplier<@Nullable ? extends RuntimeException> requireBootstrapExecutorExceptionSupplier; /** * Create a new instance passing in the common pieces that will be shared if multiple @@ -161,7 +161,7 @@ public class EntityManagerFactoryBuilder { * @param exceptionSupplier a supplier providing the exception to throw * @since 4.1.0 */ - public void requireBootstrapExecutor(Supplier exceptionSupplier) { + public void requireBootstrapExecutor(Supplier<@Nullable ? extends RuntimeException> exceptionSupplier) { Assert.notNull(exceptionSupplier, "'exceptionSupplier' must not be null"); this.requireBootstrapExecutorExceptionSupplier = exceptionSupplier; }