Integrated: 8179918: EnumSet spliterator should report SORTED, ORDERED, NONNULL

Patrick Strawderman duke at openjdk.org
Sat Dec 6 15:37:07 UTC 2025


On Sat, 29 Nov 2025 21:48:43 GMT, Patrick Strawderman <duke at openjdk.org> wrote:

> I noticed that the Spliterator for EnumSet does not report SORTED, ORDERED, or NONNULL characteristics, all of which are inherent to API of EnumSet. I found there's an existing ticket for this as well.
> 
> The ticket also mentions optimized `forEach`, etc, which I presume means avoiding the default implementation that uses the iterator and just iterating over the bitset directly; I can add that here or perhaps in a follow up if it's still deemed worthwhile.

This pull request has now been integrated.

Changeset: 5f083aba
Author:    Patrick Strawderman <pstrawderman at netflix.com>
Committer: Viktor Klang <vklang at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/5f083abafc7abfaa46ddd053668cdfbfd2ad8a87
Stats:     104 lines in 2 files changed: 103 ins; 0 del; 1 mod

8179918: EnumSet spliterator should report SORTED, ORDERED, NONNULL

Reviewed-by: vklang

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

PR: https://git.openjdk.org/jdk/pull/28568


More information about the core-libs-dev mailing list