mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Socks5MultiDiscovery: Don't create useless array
We create an array in the getPeers method and throw it away without using it.
This commit is contained in:
parent
f92f4e8da0
commit
bb3acb3fa9
@ -75,7 +75,7 @@ public class Socks5MultiDiscovery implements PeerDiscovery {
|
||||
list.addAll(Arrays.asList(discovery.getPeers(services, timeoutValue, timeoutUnit)));
|
||||
}
|
||||
|
||||
return list.toArray(new InetSocketAddress[list.size()]);
|
||||
return list.toArray(new InetSocketAddress[0]);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user