RFR: 8032190 It's unclear that flatMap will ensure each stream will be closed.

Paul Sandoz paul.sandoz at oracle.com
Mon Jan 20 15:18:57 UTC 2014

On Jan 20, 2014, at 3:18 PM, Chris Hegarty <chris.hegarty at oracle.com> wrote:

> It is good to clarify that the streams are closed.
> I find the following updated wording a little odd, "If a mapped stream is {@code null} then it treated as if it was an empty stream." I thought the previous wording was better, but that could be just me.

I was hopping to use the term "mapped stream" to avoid some repetition for "the result of the mapping function" etc, but wording seems a little garbled.

How about:

  If a mapped stream is {@code null} an empty stream is used, instead. 


More information about the core-libs-dev mailing list