[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GitHub] commons-io pull request #65: Performance Enhancement: Call toArray with Zero...

GitHub user DaGeRe opened a pull request:


    Performance Enhancement: Call toArray with Zero Array Size

    toArray should, at least since Java 7, be used with new T[0] instead of size, since it is "faster, safer, and contractually cleaner" (https://shipilev.net/blog/2016/arrays-wisdom-ancients/#_conclusion)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/DaGeRe/commons-io master

Alternatively you can review and apply these changes as the patch at:


To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #65
commit e598905de57759707a1736bfc65f704fd68dff8f
Author: David Georg Reichelt <davidgeorg_reichelt@...>
Date:   2018-10-10T10:09:03Z

    Performance Enhancement: Call toArray with Zero Array Size



To unsubscribe, e-mail: dev-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: dev-help@xxxxxxxxxxxxxxxxxx