We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74bb42b commit 5f13ea9Copy full SHA for 5f13ea9
spring-webmvc/src/main/java/org/springframework/web/servlet/function/DefaultServerRequest.java
@@ -438,7 +438,8 @@ public boolean containsKey(Object key) {
438
439
@Override
440
public void clear() {
441
- this.servletRequest.getAttributeNames().asIterator().forEachRemaining(this.servletRequest::removeAttribute);
+ List<String> attributeNames = Collections.list(this.servletRequest.getAttributeNames());
442
+ attributeNames.forEach(this.servletRequest::removeAttribute);
443
}
444
445
0 commit comments