RFR: 8306785: fix deficient spliterators for Sequenced Collections

Stuart Marks smarks at openjdk.org
Wed Jul 12 23:24:28 UTC 2023


On Wed, 12 Jul 2023 17:25:03 GMT, Stuart Marks <smarks at openjdk.org> wrote:

> Change some reverse-ordered spliterators to use `Spliterators.spliterator(Collection, ORDERED)` instead of `Spliterators.spliteratorUnknownSize()`. This gives SIZED and ORDERED spliterators. More optimizations will be done later. I'm intending to backport this to JDK 21 so I want this to be minimal.
> 
> I've also included some adjustments to spliterator implementation comments to clear up a few points of confusion. (No spec changes.)

@PaulSandoz I'd appreciate your thoughts on the comment changes.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/14854#issuecomment-1633324874


More information about the core-libs-dev mailing list