Skip to content

Commit 347040c

Browse files
committed
Improve Javadoc for HttpHeaders.formatHeaders()
1 parent 8999336 commit 347040c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-web/src/main/java/org/springframework/http/HttpHeaders.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2089,14 +2089,14 @@ public static HttpHeaders readOnlyHttpHeaders(HttpHeaders headers) {
20892089

20902090
/**
20912091
* Helps to format HTTP header values, as HTTP header values themselves can
2092-
* contain comma-separated values, can become confusing with regular
2092+
* contain comma-separated values which can become confusing with regular
20932093
* {@link Map} formatting that also uses commas between entries.
20942094
* <p>Additionally, this method displays the native list of header names
2095-
* with the mention {@code with native header names} if the underlying
2095+
* and includes the text "with native header names" if the underlying
20962096
* implementation stores multiple casing variants of header names (see
20972097
* {@link HttpHeaders class level javadoc}).
20982098
* @param headers the headers to format
2099-
* @return the headers to a String
2099+
* @return a String representation of the headers
21002100
* @since 5.1.4
21012101
*/
21022102
public static String formatHeaders(MultiValueMap<String, String> headers) {

0 commit comments

Comments
 (0)