Motivation: Using toArray(new T[0]) is usually the faster aproach these days. We should use it. See also https://shipilev.net/blog/2016/arrays-wisdom-ancients/#_conclusion. Modifications: Replace toArray(new T[size]) with toArray(new T[0]). Result: Faster code. |
||
---|---|---|
.. | ||
main/java/io/netty/resolver | ||
test/java/io/netty/resolver |