mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8306785: fix deficient spliterators for Sequenced Collections
Reviewed-by: psandoz
This commit is contained in:
parent
372d0cf752
commit
743e8b8e0a
6 changed files with 26 additions and 12 deletions
|
@ -61,7 +61,7 @@ class ReverseOrderDequeView<E> implements Deque<E> {
|
|||
}
|
||||
|
||||
public Spliterator<E> spliterator() {
|
||||
return Spliterators.spliteratorUnknownSize(base.descendingIterator(), 0);
|
||||
return Spliterators.spliterator(this, Spliterator.ORDERED);
|
||||
}
|
||||
|
||||
// ========== Collection ==========
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue