netty5/resolver-dns/src/test/java/io/netty/resolver/dns
Norman Maurer 83710cb2e1
Replace toArray(new T[size]) with toArray(new T[0]) to eliminate zero-out and allow the VM to optimize. (#8075)
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.
2018-06-29 07:56:04 +02:00
..
DefaultDnsCacheTest.java Enfore upper limit for minTtl when using DefaultCacheEntry. (#7920) 2018-05-09 08:57:20 +02:00
DnsNameResolverClientSubnetTest.java DNS Resovler tests should be more explicit about ndots 2017-07-12 15:49:45 -07:00
DnsNameResolverTest.java Always follow cnames even if a matching A or AAAA record was found. (#7919) 2018-05-09 13:48:20 +02:00
DnsServerAddressesTest.java DNS move JDK DNS resolution out of DnsServerAddresses static initialization 2017-04-06 18:09:58 -07:00
SearchDomainTest.java Fix typos in docs. 2018-02-14 08:44:07 +01:00
TestDnsServer.java Replace toArray(new T[size]) with toArray(new T[0]) to eliminate zero-out and allow the VM to optimize. (#8075) 2018-06-29 07:56:04 +02:00
UnixResolverDnsServerAddressStreamProviderTest.java UnixResolverDnsServerAddressStreamProvider should allow for empty /etc/resolver dir 2017-07-05 20:14:27 -04:00