Add mutability, serializability, and thread-safety, caveat to all Collectors that do not accept a Collection supplier

XMLWordPrintable

        Many of the Collectors defined in java.util.stream.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. This appears to be a minor oversight in the original spec.

              Assignee:
              Chris Hegarty
              Reporter:
              Chris Hegarty
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: