From 5f9a13bdc3f59265bb533e4b12e5def3eb5cc457 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 20 Nov 2024 10:31:51 -0800 Subject: [PATCH] Fix `withDefaultRequestConfigCustomizer` method name Second attempt to fix the method name. Closes gh-43139 --- .../HttpComponentsClientHttpRequestFactoryBuilder.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/http/client/HttpComponentsClientHttpRequestFactoryBuilder.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/http/client/HttpComponentsClientHttpRequestFactoryBuilder.java index b8c89fb5cc9..19fbdfa7083 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/http/client/HttpComponentsClientHttpRequestFactoryBuilder.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/http/client/HttpComponentsClientHttpRequestFactoryBuilder.java @@ -175,15 +175,14 @@ public final class HttpComponentsClientHttpRequestFactoryBuilder * additional customization to the underlying * {@link org.apache.hc.client5.http.config.RequestConfig.Builder} used for default * requests. - * @param defaultRequestConfigManagerCustomizer the customizer to apply + * @param defaultRequestConfigCustomizer the customizer to apply * @return a new {@link HttpComponentsClientHttpRequestFactoryBuilder} instance */ public HttpComponentsClientHttpRequestFactoryBuilder withDefaultRequestConfigCustomizer( - Consumer defaultRequestConfigManagerCustomizer) { - Assert.notNull(defaultRequestConfigManagerCustomizer, - "'defaultRequestConfigManagerCustomizer' must not be null"); + Consumer defaultRequestConfigCustomizer) { + Assert.notNull(defaultRequestConfigCustomizer, "'defaultRequestConfigCustomizer' must not be null"); return new HttpComponentsClientHttpRequestFactoryBuilder(getCustomizers(), this.httpClientCustomizer, - this.connectionManagerCustomizer, this.socketConfigCustomizer, defaultRequestConfigManagerCustomizer, + this.connectionManagerCustomizer, this.socketConfigCustomizer, defaultRequestConfigCustomizer, this.tlsSocketStrategyFactory); }