Skip to content

Commit 18474c9

Browse files
committed
Document IAE in HttpHeaders methods that parse ETags
See gh-24950
1 parent d9262b8 commit 18474c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,6 +1140,7 @@ public void setIfMatch(List<String> ifMatchList) {
11401140

11411141
/**
11421142
* Return the value of the {@code If-Match} header.
1143+
* @throws IllegalArgumentException if parsing fails
11431144
* @since 4.3
11441145
*/
11451146
public List<String> getIfMatch() {
@@ -1199,6 +1200,7 @@ public void setIfNoneMatch(List<String> ifNoneMatchList) {
11991200

12001201
/**
12011202
* Return the value of the {@code If-None-Match} header.
1203+
* @throws IllegalArgumentException if parsing fails
12021204
*/
12031205
public List<String> getIfNoneMatch() {
12041206
return getETagValuesAsList(IF_NONE_MATCH);
@@ -1542,6 +1544,7 @@ public void clearContentHeaders() {
15421544
* Retrieve a combined result from the field values of the ETag header.
15431545
* @param headerName the header name
15441546
* @return the combined result
1547+
* @throws IllegalArgumentException if parsing fails
15451548
* @since 4.3
15461549
*/
15471550
protected List<String> getETagValuesAsList(String headerName) {

0 commit comments

Comments
 (0)