Skip to content

Commit d37030b

Browse files
committed
Polishing
1 parent f62380c commit d37030b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,6 @@ private long getFirstDate(String headerName, boolean rejectInvalid) {
16141614
// ignore
16151615
}
16161616
}
1617-
16181617
}
16191618
if (rejectInvalid) {
16201619
throw new IllegalArgumentException("Cannot parse date value \"" + headerValue +
@@ -1900,7 +1899,7 @@ public MultiValueMap<String, String> asMultiValueMap() {
19001899
// Map-like implementation
19011900

19021901
/**
1903-
* Returns {@code true} if this HttpHeaders contains no header entry.
1902+
* Returns {@code true} if this HttpHeaders contains no header entries.
19041903
*/
19051904
public boolean isEmpty() {
19061905
return this.headers.isEmpty();
@@ -1944,7 +1943,7 @@ public boolean containsHeaderValue(String headerName, String value) {
19441943

19451944
/**
19461945
* Get the list of values associated with the given header name, or null.
1947-
* <p>To ensure support for double-quoted values, see also
1946+
* <p>To ensure support for double-quoted values, use
19481947
* {@link #getValuesAsList(String)}.
19491948
* @param headerName the header name
19501949
* @since 7.0
@@ -2000,7 +1999,7 @@ public void putAll(Map<? extends String, ? extends List<String>> headers) {
20001999
* Remove a header from this HttpHeaders instance, and return the associated
20012000
* value list or {@code null} if that header wasn't present.
20022001
* @param key the name of the header to remove
2003-
* @return the value list associated with the removed header name
2002+
* @return the value list associated with the removed header name or {@code null}
20042003
* @since 7.0
20052004
*/
20062005
public @Nullable List<String> remove(String key) {
@@ -2015,8 +2014,9 @@ public void clear() {
20152014
}
20162015

20172016
/**
2018-
* Return the number of headers in the collection. This can be inflated,
2019-
* see {@link HttpHeaders class level javadoc}.
2017+
* Return the number of headers in the collection.
2018+
* <p>This can be inflated: see the {@link HttpHeaders class level javadoc}
2019+
* for details.
20202020
*/
20212021
public int size() {
20222022
return this.headers.size();
@@ -2033,7 +2033,7 @@ public void forEach(BiConsumer<? super String, ? super List<String>> action) {
20332033

20342034
/**
20352035
* Return a view of the headers as an entry {@code Set} of key-list pairs.
2036-
* Both {@link Iterator#remove()} and {@link Entry#setValue}
2036+
* <p>Both {@link Iterator#remove()} and {@link Entry#setValue}
20372037
* are supported and mutate the headers.
20382038
* <p>This collection is guaranteed to contain one entry per header name
20392039
* even if the backing structure stores multiple casing variants of names,
@@ -2048,8 +2048,9 @@ public Set<Entry<String, List<String>>> headerSet() {
20482048
}
20492049

20502050
/**
2051-
* Return the set of header names. Both {@link Set#remove(Object)} and
2052-
* {@link Set#clear()} operations are supported and mutate the headers.
2051+
* Return the set of header names.
2052+
* <p>Both {@link Set#remove(Object)} and {@link Set#clear()} operations are
2053+
* supported and mutate the headers.
20532054
* <p>This collection is guaranteed to contain only one casing variant
20542055
* of each header name even if the backing structure stores multiple casing
20552056
* variants of names. The first encountered variant is the one that is
@@ -2231,7 +2232,6 @@ public void clear() {
22312232

22322233
private static class HeaderNamesIterator implements Iterator<String> {
22332234

2234-
22352235
private @Nullable String currentName;
22362236

22372237
private final MultiValueMap<String, String> headers;

0 commit comments

Comments
 (0)