Fix nullable declaration in EntityManagerFactoryBuilder

See gh-49740

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
This commit is contained in:
Yanming Zhou
2026-03-24 19:05:01 -07:00
committed by Phillip Webb
parent b4c2649820
commit 6c5b3a06ec
@@ -74,7 +74,7 @@ public class EntityManagerFactoryBuilder {
private @Nullable List<PersistenceUnitPostProcessor> persistenceUnitPostProcessors;
private @Nullable Supplier<? extends RuntimeException> 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<? extends RuntimeException> exceptionSupplier) {
public void requireBootstrapExecutor(Supplier<@Nullable ? extends RuntimeException> exceptionSupplier) {
Assert.notNull(exceptionSupplier, "'exceptionSupplier' must not be null");
this.requireBootstrapExecutorExceptionSupplier = exceptionSupplier;
}