Skip to content

Commit 19d66f7

Browse files
committed
use the same hashCode for ByteVector and BloomFilter
1 parent 5e1fab1 commit 19d66f7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

api/src/main/java/com/bitsofproof/supernode/common/ByteVector.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
package com.bitsofproof.supernode.common;
1717

18-
import java.util.Arrays;
18+
import org.bouncycastle.util.Arrays;
1919

2020
public 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

0 commit comments

Comments
 (0)