You can read the following sentences in the conclusion part. @lndj 
Bottom line: **toArray(new T[0]) seems faster, safer, and contractually 
cleaner, and therefore should be the default choice now.** Future VM 
optimizations may close this performance gap for toArray(new T[size]), 
rendering the current "believed to be optimal" usages on par with an actually 
optimal one. Further improvements in toArray APIs would follow the same logic 
as toArray(new T[0]) — the collection itself should create the appropriate 

[ Full content available at: ]
This message was relayed via for
To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to