Re: RFR: 8258804: Collection.toArray() should use empty array

2020-12-22 Thread Xue-Lei Andrew Fan
On Tue, 22 Dec 2020 12:39:23 GMT, David M. Lloyd wrote: >> Comparing to Collection.toArray(new T[size)), the Collection.toArray(new >> T[0]) seems faster, safer and contractually cleaner. In the update, the use >> of Collection.toArray(new T[size)) in the SunJSSE provider implementation is >

Re: RFR: 8258804: Collection.toArray() should use empty array

2020-12-22 Thread David M . Lloyd
On Mon, 21 Dec 2020 23:58:03 GMT, Xue-Lei Andrew Fan wrote: > Comparing to Collection.toArray(new T[size)), he Collection.toArray(new T[0]) > seems faster, safer and contractually cleaner. In the update, the use of > Collection.toArray(new T[size)) in the SunJSSE provider implementation is >

Re: RFR: 8258804: Collection.toArray() should use empty array

2020-12-22 Thread Sean Mullan
On Mon, 21 Dec 2020 23:58:03 GMT, Xue-Lei Andrew Fan wrote: > Comparing to Collection.toArray(new T[size)), he Collection.toArray(new T[0]) > seems faster, safer and contractually cleaner. In the update, the use of > Collection.toArray(new T[size)) in the SunJSSE provider implementation is >