Merge branch '4.0.x' into 4.1.x

Closes gh-51574
This commit is contained in:
Andy Wilkinson
2026-09-04 09:35:30 +01:00
3 changed files with 4 additions and 4 deletions
@@ -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;
@@ -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) {
@@ -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));
}