JDK-8071597: close original Stream in default implementation?
Tagir F. Valeev
amaembo at gmail.com
Wed Jul 8 02:58:01 UTC 2015
I was looking at default implementation of new Stream
I think in order to make this default behavior more consistent, the
original Stream must be closed when the returned one is closed. Thus,
takeWhile return statement should look like this:
(spliterator(), true, predicate),
The same for dropWhile method.
What do you think?
More information about the core-libs-dev