mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Polish
See gh-32197
This commit is contained in:
+2
-1
@@ -438,7 +438,8 @@ class DefaultServerRequest implements ServerRequest {
|
||||
|
||||
@Override
|
||||
public void clear() {
|
||||
this.servletRequest.getAttributeNames().asIterator().forEachRemaining(this.servletRequest::removeAttribute);
|
||||
List<String> attributeNames = Collections.list(this.servletRequest.getAttributeNames());
|
||||
attributeNames.forEach(this.servletRequest::removeAttribute);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user