[PATCH] Re: Custom spliterator for Collections.nCopies(n, obj).stream()

2015-08-22 Thread Tagir F. Valeev
Hello! PS With reuse it becomes more compelling :-) In both cases of PS singleton/nCopies the spliterator characteristics can be the same PS and that of the already existing singleton spliterator implementation. The only difference is the DISTINCT characteristic. I think it's good to report it

Re: [PATCH] Re: Custom spliterator for Collections.nCopies(n, obj).stream()

2015-08-22 Thread Tagir F. Valeev
Seems that the patch attachment was filtered out. Just for the case here it is: diff --git a/src/java.base/share/classes/java/util/Collections.java b/src/java.base/share/classes/java/util/Collections.java --- a/src/java.base/share/classes/java/util/Collections.java +++