commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DaGeRe <...@git.apache.org>
Subject [GitHub] commons-io pull request #65: Performance Enhancement: Call toArray with Zero...
Date Wed, 10 Oct 2018 12:38:39 GMT
GitHub user DaGeRe opened a pull request:

    https://github.com/apache/commons-io/pull/65

    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:

    https://github.com/apache/commons-io/pull/65.patch

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@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message