File tree Expand file tree Collapse file tree 4 files changed +5
-213
lines changed
src/main/java/com/bitsofproof/supernode/common
src/main/java/com/bitsofproof/supernode/core Expand file tree Collapse file tree 4 files changed +5
-213
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1515 */
1616package com .bitsofproof .supernode .common ;
1717
18- import java .util .Arrays ;
18+ import org . bouncycastle .util .Arrays ;
1919
2020public class ByteVector
2121{
@@ -30,7 +30,7 @@ public ByteVector (byte[] a)
3030 public boolean equals (Object obj )
3131 {
3232 ByteVector other = (ByteVector ) obj ;
33- return Arrays .equals (bytes , other .bytes );
33+ return Arrays .areEqual (bytes , other .bytes );
3434 }
3535
3636 @ Override
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -31,14 +31,11 @@ public DiscoveryChain (List<Discovery> chain)
3131 @ Override
3232 public List <InetSocketAddress > discover ()
3333 {
34+ ArrayList <InetSocketAddress > aggregate = new ArrayList <InetSocketAddress > ();
3435 for ( Discovery discovery : discoveryChain )
3536 {
36- List <InetSocketAddress > addresses = discovery .discover ();
37- if ( !addresses .isEmpty () )
38- {
39- return addresses ;
40- }
37+ aggregate .addAll (discovery .discover ());
4138 }
42- return new ArrayList < InetSocketAddress > () ;
39+ return aggregate ;
4340 }
4441}
You can’t perform that action at this time.
0 commit comments