Skip to content
Permalink
Browse files
Use lambda.
  • Loading branch information
psteitz committed Nov 12, 2021
1 parent 05ee806 commit 8951c17bcc00fe3c0d2203516baa31ff2210b1fb
Showing 1 changed file with 1 addition and 5 deletions.
@@ -569,11 +569,7 @@ private int calculateDeficit(final ObjectDeque<T> objectDeque) {
*/
@Override
public void clear() {
final Iterator<K> iter = poolMap.keySet().iterator();

while (iter.hasNext()) {
clear(iter.next(), false);
}
poolMap.keySet().forEach(key -> clear(key,false));
}

/**

0 comments on commit 8951c17

Please sign in to comment.