namannigam edited a comment on issue #65: Performance Enhancement: Call toArray 
with Zero Array Size
URL: https://github.com/apache/commons-io/pull/65#issuecomment-464826047
 
 
   @kinow In Java-11, there has been an introduction to an API `default <T> T[] 
toArray(IntFunction<T[]> generator)` which does internally calls the same 0 
sized array initialisation. 
   The construct for example in that case would be 
`list.toArray(String[]::new)` instead of `list.toArray(new String[0])`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to