RFR  8068599: Apply mutability, serializability, and thread-safety, caveat to all Collectors that do not accept a Collection supplier
paul.sandoz at oracle.com
Thu Jan 8 15:46:34 UTC 2015
On Jan 8, 2015, at 3:24 PM, Chris Hegarty <chris.hegarty at oracle.com> wrote:
> This is a review request for a small spec clarification to java.util.stream.Collectors, that appears to be a minor oversight in the original spec.
> Many of the Collectors that accumulate, group, etc, elements into a Collection, and do not accept a Collection supplier, come with a caveat on the Collection they create, along the lines of, "There are no guarantees on the type, mutability, serializability, or thread-safety of the ... returned".
> This caveat should be applied to all Collectors that create such Collections.
Thanks for doing this. The toMap docs are missing 'thread-safety", otherwise looks good.
More information about the core-libs-dev