RFR(s): 8160406: Collection.toArray() spec should be explicit about returning precisely an Object[]

Stuart Marks stuart.marks at oracle.com
Thu Nov 30 19:17:09 UTC 2017



On 11/29/17 7:28 PM, Martin Buchholz wrote:
> I would make one change.
> 
> +     * @param <T> the static component type of the array to contain the collection
> 
> Just drop runtime/static
> 
>      * @param <T> the component type of the array to contain the collection
> 
> the "static" is "obvious" and the caller could in theory provide the T to use.

OK. This makes it read a bit better. We emphasize the runtime type in the other 
places where it's important, which is probably provides a sufficient distinction.

Thanks,

s'marks



More information about the core-libs-dev mailing list