From 1730bf6f945f74ba7f3a89e1d792ccace0e89c65 Mon Sep 17 00:00:00 2001 From: YiXuan Ding <1328032567@qq.com> Date: Thu, 24 Oct 2024 16:13:38 +0800 Subject: [PATCH] Update HttpWebServiceMessageSenderBuilder javadoc Update the return javadoc from "@return a new builder instance" to "@return the current builder instance". See gh-42868 --- .../client/HttpWebServiceMessageSenderBuilder.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/webservices/client/HttpWebServiceMessageSenderBuilder.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/webservices/client/HttpWebServiceMessageSenderBuilder.java index 5d25c93e601..054959a590a 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/webservices/client/HttpWebServiceMessageSenderBuilder.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/webservices/client/HttpWebServiceMessageSenderBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 the original author or authors. + * Copyright 2012-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -48,7 +48,7 @@ public class HttpWebServiceMessageSenderBuilder { /** * Set the connection timeout. * @param connectTimeout the connection timeout - * @return a new builder instance + * @return the current builder instance */ public HttpWebServiceMessageSenderBuilder setConnectTimeout(Duration connectTimeout) { this.connectTimeout = connectTimeout; @@ -58,7 +58,7 @@ public class HttpWebServiceMessageSenderBuilder { /** * Set the read timeout. * @param readTimeout the read timeout - * @return a new builder instance + * @return the current builder instance */ public HttpWebServiceMessageSenderBuilder setReadTimeout(Duration readTimeout) { this.readTimeout = readTimeout; @@ -68,7 +68,7 @@ public class HttpWebServiceMessageSenderBuilder { /** * Set an {@link SslBundle} that will be used to configure a secure connection. * @param sslBundle the SSL bundle - * @return a new builder instance + * @return the current builder instance */ public HttpWebServiceMessageSenderBuilder sslBundle(SslBundle sslBundle) { this.sslBundle = sslBundle; @@ -79,7 +79,7 @@ public class HttpWebServiceMessageSenderBuilder { * Set the {@code Supplier} of {@link ClientHttpRequestFactory} that should be called * to create the HTTP-based {@link WebServiceMessageSender}. * @param requestFactorySupplier the supplier for the request factory - * @return a new builder instance + * @return the current builder instance */ public HttpWebServiceMessageSenderBuilder requestFactory( Supplier requestFactorySupplier) { @@ -93,7 +93,7 @@ public class HttpWebServiceMessageSenderBuilder { * {@link ClientHttpRequestFactory} that should be called to create the HTTP-based * {@link WebServiceMessageSender}. * @param requestFactoryFunction the function for the request factory - * @return a new builder instance + * @return the current builder instance * @since 3.0.0 */ public HttpWebServiceMessageSenderBuilder requestFactory(