From e95f8d2922b6185c1d71920fb907f4164339c7a8 Mon Sep 17 00:00:00 2001 From: johannesrost Date: Thu, 23 Nov 2023 09:27:02 +0100 Subject: [PATCH 1/2] Polish RestClient Javadoc See gh-31659 --- .../org/springframework/web/client/RestClient.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/web/client/RestClient.java b/spring-web/src/main/java/org/springframework/web/client/RestClient.java index 4d2c9ca062..365c377a54 100644 --- a/spring-web/src/main/java/org/springframework/web/client/RestClient.java +++ b/spring-web/src/main/java/org/springframework/web/client/RestClient.java @@ -673,26 +673,26 @@ public interface RestClient { * .retrieve() * .toBodilessEntity(); * - * @param body the body of the response - * @return the built response + * @param body the body of the request + * @return this builder */ RequestBodySpec body(Object body); /** - * Set the body of the response to the given {@code Object}. + * Set the body of the request to the given {@code Object}. * The parameter {@code bodyType} is used to capture the generic type. - * @param body the body of the response + * @param body the body of the request * @param bodyType the type of the body, used to capture the generic type - * @return the built response + * @return this builder */ RequestBodySpec body(T body, ParameterizedTypeReference bodyType); /** - * Set the body of the response to the given function that writes to + * Set the body of the request to the given function that writes to * an {@link OutputStream}. * @param body a function that takes an {@code OutputStream} and can * throw an {@code IOException} - * @return the built response + * @return this builder */ RequestBodySpec body(StreamingHttpOutputMessage.Body body); } From 487dbf81406a1578b9f10353844f643d17e3f417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Thu, 23 Nov 2023 12:59:03 +0100 Subject: [PATCH 2/2] Polish "Polish RestClient Javadoc" See gh-31659 --- .../main/java/org/springframework/web/client/RestClient.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/web/client/RestClient.java b/spring-web/src/main/java/org/springframework/web/client/RestClient.java index 365c377a54..a54db9d93a 100644 --- a/spring-web/src/main/java/org/springframework/web/client/RestClient.java +++ b/spring-web/src/main/java/org/springframework/web/client/RestClient.java @@ -128,7 +128,7 @@ public interface RestClient { /** * Return a builder to create a new {@code RestClient} whose settings are - * replicated from the current {@code RestClient}. + * replicated from this {@code RestClient}. */ Builder mutate(); @@ -468,8 +468,6 @@ public interface RestClient { /** * Set the value of the {@code If-Modified-Since} header. - *

The date should be specified as the number of milliseconds since - * January 1, 1970 GMT. * @param ifModifiedSince the new value of the header * @return this builder */