Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
bclozel committed Feb 5, 2024
1 parent 74bb42b commit 5f13ea9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,8 @@ public boolean containsKey(Object key) {

@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
Expand Down

0 comments on commit 5f13ea9

Please sign in to comment.