Michael Keppler
2fc00af44e
refactor: simplify collection.toArray()
On recent VMs, collection.toArray(new T[0]) is faster than collection.toArray(new T[collection.size()]). Since it is also more readable, it should now be the preferred way of collection to array conversion. https://shipilev.net/blog/2016/arrays-wisdom-ancients/ Change-Id: I80388532fb4b2b0663ee1fe8baa94f5df55c8442 Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de> |
5 years ago | |
---|---|---|
.. | ||
org/eclipse/jgit/junit/http | refactor: simplify collection.toArray() | 5 years ago |