On Sat, 29 Nov 2025 21:48:43 GMT, Patrick Strawderman <[email protected]> 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 <[email protected]> Committer: Viktor Klang <[email protected]> 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
