RFR: 8373243 : EnumSet.spliterator() should specify and document its characteristics [v2]
Jason Mehrens
duke at openjdk.org
Thu Dec 11 02:59:23 UTC 2025
On Tue, 9 Dec 2025 03:15:10 GMT, Joe Darcy <darcy at openjdk.org> wrote:
> PS Is there anything analagous that should be added to any of the methods on EnumMap about the properties of the returned collections?
In addition to documentation, I would think the splitIterator() of EnumMap::keySet and or EnumMap::entrySet would need to be overridden too so characteristics of Collections.newSetFromMap match with this patch.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28696#issuecomment-3639835059
More information about the core-libs-dev
mailing list