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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org