mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-15 03:35:52 +00:00
PeerGroupTest: Clear some minor static analysis warnings.
This commit is contained in:
parent
b5127f4414
commit
f94c41e5b6
@ -102,8 +102,6 @@ public class PeerGroupTest extends TestWithPeerGroup {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void listener() throws Exception {
|
public void listener() throws Exception {
|
||||||
final SettableFuture<Void> firstDisconnectFuture = SettableFuture.create();
|
|
||||||
final SettableFuture<Void> secondDisconnectFuture = SettableFuture.create();
|
|
||||||
peerGroup.startAndWait();
|
peerGroup.startAndWait();
|
||||||
peerGroup.addEventListener(listener);
|
peerGroup.addEventListener(listener);
|
||||||
|
|
||||||
@ -452,7 +450,7 @@ public class PeerGroupTest extends TestWithPeerGroup {
|
|||||||
peerGroup.addEventListener(listener);
|
peerGroup.addEventListener(listener);
|
||||||
peerGroup.addPeerDiscovery(new PeerDiscovery() {
|
peerGroup.addPeerDiscovery(new PeerDiscovery() {
|
||||||
public InetSocketAddress[] getPeers(long unused, TimeUnit unused2) throws PeerDiscoveryException {
|
public InetSocketAddress[] getPeers(long unused, TimeUnit unused2) throws PeerDiscoveryException {
|
||||||
return addresses.toArray(new InetSocketAddress[0]);
|
return addresses.toArray(new InetSocketAddress[addresses.size()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void shutdown() {
|
public void shutdown() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user