RFR: 8015320: Pull spliterator() up from Collection to Iterable

Mike Duigou mike.duigou at oracle.com
Fri Jul 12 22:10:10 UTC 2013


Looks good (with Paul's @implNote change).

Mike

On Jul 9 2013, at 15:52 , Henry Jen wrote:

> Hi,
> 
> Please review the webrev at
> 
> http://cr.openjdk.java.net/~henryjen/ccc/8015320.0/webrev/
> 
> This allows turning an Iterable into a stream with spliterator() methods
> if the implementation provides one(like many Collection implementations)
> rather than be forced to use less-efficient iterator().
> 
> Two small changes are not directly related,
> - cleanup on SpliteratorCollisions.java test
> - add a @see Spliterator for ConcurrentModificationException
> 
> Cheers,
> Henry




More information about the core-libs-dev mailing list