mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Fix nullable declaration in EntityManagerFactoryBuilder
See gh-49740 Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
This commit is contained in:
committed by
Phillip Webb
parent
b4c2649820
commit
6c5b3a06ec
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user