RFR: 8032190 It's unclear that flatMap will ensure each stream will be closed.
Chris Hegarty
chris.hegarty at oracle.com
Mon Jan 20 22:26:56 UTC 2014
> On 20 Jan 2014, at 15: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.
Thanks Paul. Seems fine to me.
-Chris.
> Paul.
>
>
>
>
More information about the core-libs-dev
mailing list