From 347040c5a4205de323d60d87f18276bf0e88ce63 Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Wed, 12 Nov 2025 14:17:13 +0100 Subject: [PATCH] Improve Javadoc for HttpHeaders.formatHeaders() --- .../src/main/java/org/springframework/http/HttpHeaders.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/http/HttpHeaders.java b/spring-web/src/main/java/org/springframework/http/HttpHeaders.java index c713f775ab6..7936abc5db6 100644 --- a/spring-web/src/main/java/org/springframework/http/HttpHeaders.java +++ b/spring-web/src/main/java/org/springframework/http/HttpHeaders.java @@ -2089,14 +2089,14 @@ public class HttpHeaders implements Serializable { /** * Helps to format HTTP header values, as HTTP header values themselves can - * contain comma-separated values, can become confusing with regular + * contain comma-separated values which can become confusing with regular * {@link Map} formatting that also uses commas between entries. *
Additionally, this method displays the native list of header names
- * with the mention {@code with native header names} if the underlying
+ * and includes the text "with native header names" if the underlying
* implementation stores multiple casing variants of header names (see
* {@link HttpHeaders class level javadoc}).
* @param headers the headers to format
- * @return the headers to a String
+ * @return a String representation of the headers
* @since 5.1.4
*/
public static String formatHeaders(MultiValueMap