Skip to content

Commit a3e8a17

Browse files
committed
Polishing
1 parent 15a3f42 commit a3e8a17

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

spring-core/src/main/java/org/springframework/util/MultiValueMap.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ default void addIfAbsent(K key, @Nullable V value) {
8181
void set(K key, @Nullable V value);
8282

8383
/**
84-
* Set the given values under.
85-
* @param values the values.
84+
* Set the given values in this {@code MultiValueMap}.
85+
* @param values the values
8686
*/
8787
void setAll(Map<K, V> values);
8888

8989
/**
9090
* Return a {@code Map} with the first values contained in this {@code MultiValueMap}.
91-
* The difference between this method and {@link #asSingleValueMap()} is
91+
* <p>The difference between this method and {@link #asSingleValueMap()} is
9292
* that this method returns a copy of the entries of this map, whereas
9393
* the latter returns a view.
9494
* @return a single value representation of this map

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1798,7 +1798,7 @@ public void addAll(String headerName, List<? extends String> headerValues) {
17981798
}
17991799

18001800
/**
1801-
* Add all the values of the given {@code HttpHeaders} to the current header.
1801+
* Add all name-value pairs of the given {@code HttpHeaders}.
18021802
* <p>As values are represented as a {@code List}, duplicate values can be
18031803
* introduced. See {@link #putAll(HttpHeaders)} to replace the list of
18041804
* values of each individual header name instead.
@@ -1823,8 +1823,8 @@ public void set(String headerName, @Nullable String headerValue) {
18231823
}
18241824

18251825
/**
1826-
* Set all single header value from the given Map under each of their
1827-
* corresponding name.
1826+
* Set all single header values from the given Map under each of their
1827+
* corresponding names.
18281828
* @param values the name-single-value pairs
18291829
* @see #putAll(Map)
18301830
*/
@@ -1973,8 +1973,7 @@ public void putAll(HttpHeaders headers) {
19731973
}
19741974

19751975
/**
1976-
* Put all the entries from the given {@code MultiValueMap} into this
1977-
* HttpHeaders.
1976+
* Put all the entries from the given {@code Map} into this HttpHeaders.
19781977
* @param headers the given headers
19791978
* @see #put(String, List)
19801979
*/
@@ -2014,7 +2013,7 @@ public int size() {
20142013
* @param action the action to be performed for each entry
20152014
*/
20162015
public void forEach(BiConsumer<? super String, ? super List<String>> action) {
2017-
this.headerSet().forEach(e -> action.accept(e.getKey(), e.getValue()));
2016+
headerSet().forEach(e -> action.accept(e.getKey(), e.getValue()));
20182017
}
20192018

20202019
/**

0 commit comments

Comments
 (0)