diff options
author | Michael Keppler | 2019-07-17 18:17:01 +0000 |
---|---|---|
committer | Michael Keppler | 2019-09-18 06:29:03 +0000 |
commit | 7040c93714187a5721ee8831ef0d12f6c4e16bbf (patch) | |
tree | c2c3489ae42c5fecd65b93ce56b3afc54d276387 /org.eclipse.mylyn.github.ui/.settings/org.eclipse.jdt.ui.prefs | |
parent | 562d5c52cc5ac97efea57ec0f30c23e89fcfaa24 (diff) | |
download | egit-github-7040c93714187a5721ee8831ef0d12f6c4e16bbf.tar.gz egit-github-7040c93714187a5721ee8831ef0d12f6c4e16bbf.tar.xz egit-github-7040c93714187a5721ee8831ef0d12f6c4e16bbf.zip |
Simplify collection.toArray() calls
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/
Regex used for search: (?s)\Q.toArray(\E\s*new\s+\w+\Q[\E(?!0)
Change-Id: I8c20a5b01e2bba4a47e24c6a9bb37e81dd438bd1
Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
Diffstat (limited to 'org.eclipse.mylyn.github.ui/.settings/org.eclipse.jdt.ui.prefs')
0 files changed, 0 insertions, 0 deletions