RFR(s): 8060192: Add default method Collection.toArray(generator)
ecki at zusammenkunft.net
Wed Dec 6 04:41:21 UTC 2017
Should the test also check for the case the generator returns under- and oversized arrays?
The default impl looks less efficient than (new T), should it really be removed as a major Javadoc example? (Or maybe add more specific implementations besides ArrayList?)
From: core-libs-dev <core-libs-dev-bounces at openjdk.java.net> on behalf of Stuart Marks <stuart.marks at oracle.com>
Sent: Wednesday, December 6, 2017 2:27:44 AM
Subject: Re: RFR(s): 8060192: Add default method Collection.toArray(generator)
Revised webrev based on comments from Martin Buchholz and Paul Sandoz:
I've done a bit of rewriting of the @apiNote sections to clarify the intended
use of the various toArray() methods.
More information about the core-libs-dev