RFR: 8373288: EnumMap spliterators should include more specific characteristics
Patrick Strawderman
duke at openjdk.org
Tue Dec 16 04:50:25 UTC 2025
The spliterators returned by keySet, entrySet, and values were not reporting additional characteristics, such as ORDERED, SORTED, and NONNULL; the EnumMap iterators all guarantee iteration is in the natural order of the enum key, and nulls are disallowed as keys.
Null values are allowed, so the values collection can only additionally report ORDERED.
-------------
Commit messages:
- Update copyright year
- 8373288: EnumMap spliterators should include more specific characteristics
Changes: https://git.openjdk.org/jdk/pull/28840/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28840&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8373288
Stats: 140 lines in 2 files changed: 138 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/28840.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/28840/head:pull/28840
PR: https://git.openjdk.org/jdk/pull/28840
More information about the core-libs-dev
mailing list