Should the test also check for the case the generator returns under- and 
oversized arrays?

The default impl looks less efficient than (new T[0]), should it really be 
removed as a major Javadoc example? (Or maybe add more specific implementations 
besides ArrayList?)

Gruss
Bernd
--
http://bernd.eckenfels.net
________________________________
From: core-libs-dev <core-libs-dev-boun...@openjdk.java.net> on behalf of 
Stuart Marks <stuart.ma...@oracle.com>
Sent: Wednesday, December 6, 2017 2:27:44 AM
To: core-libs-dev
Subject: Re: RFR(s): 8060192: Add default method Collection.toArray(generator)

Revised webrev based on comments from Martin Buchholz and Paul Sandoz:

     http://cr.openjdk.java.net/~smarks/reviews/8060192/webrev.1/

I've done a bit of rewriting of the @apiNote sections to clarify the intended
use of the various toArray() methods.

s'marks

Reply via email to