mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Merge branch '4.0.x' into 4.1.x
Closes gh-51574
This commit is contained in:
@@ -451,7 +451,7 @@ public interface JsonWriter<T> {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public <R> Member<R> as(Extractor<T, R> extractor) {
|
||||
Assert.notNull(extractor, "'adapter' must not be null");
|
||||
Assert.notNull(extractor, "'extractor' must not be null");
|
||||
Member<R> result = (Member<R>) this;
|
||||
result.valueExtractor = this.valueExtractor.as(extractor::extract);
|
||||
return result;
|
||||
|
||||
+2
-2
@@ -127,7 +127,7 @@ public interface ClientHttpConnectorBuilder<T extends ClientHttpConnector> {
|
||||
|
||||
/**
|
||||
* Return a new {@link ClientHttpConnectorBuilder} for the given
|
||||
* {@code requestFactoryType}. The following implementations are supported:
|
||||
* {@code clientHttpConnectorType}. The following implementations are supported:
|
||||
* <ul>
|
||||
* <li>{@link ReactorClientHttpConnector}</li>
|
||||
* <li>{@link JettyClientHttpConnector}</li>
|
||||
@@ -140,7 +140,7 @@ public interface ClientHttpConnectorBuilder<T extends ClientHttpConnector> {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
static <T extends ClientHttpConnector> ClientHttpConnectorBuilder<T> of(Class<T> clientHttpConnectorType) {
|
||||
Assert.notNull(clientHttpConnectorType, "'requestFactoryType' must not be null");
|
||||
Assert.notNull(clientHttpConnectorType, "'clientHttpConnectorType' must not be null");
|
||||
Assert.isTrue(clientHttpConnectorType != ClientHttpConnector.class,
|
||||
"'clientHttpConnectorType' must be an implementation of ClientHttpConnector");
|
||||
if (clientHttpConnectorType == ReactorClientHttpConnector.class) {
|
||||
|
||||
+1
-1
@@ -67,7 +67,7 @@ public final class HttpComponentsClientHttpConnectorBuilder
|
||||
*/
|
||||
public HttpComponentsClientHttpConnectorBuilder withHttpClientCustomizer(
|
||||
Consumer<HttpAsyncClientBuilder> httpClientCustomizer) {
|
||||
Assert.notNull(httpClientCustomizer, "'customizer' must not be null");
|
||||
Assert.notNull(httpClientCustomizer, "'httpClientCustomizer' must not be null");
|
||||
return new HttpComponentsClientHttpConnectorBuilder(getCustomizers(),
|
||||
this.httpClientBuilder.withCustomizer(httpClientCustomizer));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user