mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Merge branch '4.1.x'
Closes gh-51577
This commit is contained in:
+1
-1
@@ -430,7 +430,7 @@ public final class PropertyMapper {
|
|||||||
* @param consumer the consumer that should accept the value if it's not been
|
* @param consumer the consumer that should accept the value if it's not been
|
||||||
* filtered
|
* filtered
|
||||||
*/
|
*/
|
||||||
public void to(Consumer<@Nullable ? super T> consumer) {
|
public void to(Consumer<? super @Nullable T> consumer) {
|
||||||
Assert.notNull(consumer, "'consumer' must not be null");
|
Assert.notNull(consumer, "'consumer' must not be null");
|
||||||
T value = getValue();
|
T value = getValue();
|
||||||
if (value == null || test(value)) {
|
if (value == null || test(value)) {
|
||||||
|
|||||||
+3
-3
@@ -74,7 +74,7 @@ public class EntityManagerFactoryBuilder {
|
|||||||
|
|
||||||
private @Nullable List<PersistenceUnitPostProcessor> persistenceUnitPostProcessors;
|
private @Nullable List<PersistenceUnitPostProcessor> persistenceUnitPostProcessors;
|
||||||
|
|
||||||
private @Nullable Supplier<@Nullable ? extends RuntimeException> requireBootstrapExecutorExceptionSupplier;
|
private @Nullable Supplier<? extends @Nullable RuntimeException> requireBootstrapExecutorExceptionSupplier;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new instance passing in the common pieces that will be shared if multiple
|
* Create a new instance passing in the common pieces that will be shared if multiple
|
||||||
@@ -186,7 +186,7 @@ public class EntityManagerFactoryBuilder {
|
|||||||
* @param exceptionSupplier a supplier providing the exception to throw
|
* @param exceptionSupplier a supplier providing the exception to throw
|
||||||
* @since 4.1.0
|
* @since 4.1.0
|
||||||
*/
|
*/
|
||||||
public void requireBootstrapExecutor(Supplier<@Nullable ? extends RuntimeException> exceptionSupplier) {
|
public void requireBootstrapExecutor(Supplier<? extends @Nullable RuntimeException> exceptionSupplier) {
|
||||||
Assert.notNull(exceptionSupplier, "'exceptionSupplier' must not be null");
|
Assert.notNull(exceptionSupplier, "'exceptionSupplier' must not be null");
|
||||||
this.requireBootstrapExecutorExceptionSupplier = exceptionSupplier;
|
this.requireBootstrapExecutorExceptionSupplier = exceptionSupplier;
|
||||||
}
|
}
|
||||||
@@ -368,7 +368,7 @@ public class EntityManagerFactoryBuilder {
|
|||||||
return EntityManagerFactoryBuilder.this.bootstrapExecutor;
|
return EntityManagerFactoryBuilder.this.bootstrapExecutor;
|
||||||
}
|
}
|
||||||
if (EntityManagerFactoryBuilder.this.requireBootstrapExecutorExceptionSupplier != null) {
|
if (EntityManagerFactoryBuilder.this.requireBootstrapExecutorExceptionSupplier != null) {
|
||||||
@Nullable AsyncTaskExecutor fallback = EntityManagerFactoryBuilder.this.fallbackBootstrapExecutor.get();
|
AsyncTaskExecutor fallback = EntityManagerFactoryBuilder.this.fallbackBootstrapExecutor.get();
|
||||||
if (fallback != null) {
|
if (fallback != null) {
|
||||||
return fallback;
|
return fallback;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -416,7 +416,7 @@ public abstract class AbstractWebFluxEndpointHandlerMapping extends RequestMappi
|
|||||||
}
|
}
|
||||||
|
|
||||||
private @Nullable Publisher<?> invoke(InvocationContext invocationContext) {
|
private @Nullable Publisher<?> invoke(InvocationContext invocationContext) {
|
||||||
return (@Nullable Publisher<?>) this.invoker.invoke(invocationContext);
|
return (Publisher<?>) this.invoker.invoke(invocationContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
private Map<String, Object> getArguments(ServerWebExchange exchange, @Nullable Map<String, String> body) {
|
private Map<String, Object> getArguments(ServerWebExchange exchange, @Nullable Map<String, String> body) {
|
||||||
|
|||||||
Reference in New Issue
Block a user