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

Mike Duigou mike.duigou at oracle.com
Tue Jan 21 20:03:09 UTC 2014


On Jan 20 2014, at 07:18 , Paul Sandoz <paul.sandoz at oracle.com> wrote:

> 
> 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. 

The comma seems extraneous.

Mike


More information about the core-libs-dev mailing list