BufferedReader::lines
Henry Jen
henry.jen at oracle.com
Mon Dec 2 10:16:29 PST 2013
On Sat 30 Nov 2013 02:05:53 AM PST, Anthony Vanelverdinghe wrote:
> Hi
>
> I have some questions concerning this method's implementation (in b117):
>
> * the Spliterator only has the ORDERED characteristic. Why aren't the
> NONNULL and IMMUTABLE characteristics specified as well?
>
It's not IMMUTABLE because we cannot be sure that the source of
BufferReader is immutable.
I think it should have NONNULL as null is used as end of buffer.
Cheers,
Henry
More information about the lambda-dev
mailing list