mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-13 02:35:52 +00:00
Sha256Hash is immutable so byte[] should be marked as final.
This commit is contained in:
parent
c30df6ca25
commit
bf60a925bc
@ -35,7 +35,7 @@ import static com.google.common.base.Preconditions.checkArgument;
|
||||
* map. It also checks that the length is correct and provides a bit more type safety.
|
||||
*/
|
||||
public class Sha256Hash implements Serializable, Comparable<Sha256Hash> {
|
||||
private byte[] bytes;
|
||||
private final byte[] bytes;
|
||||
public static final Sha256Hash ZERO_HASH = new Sha256Hash(new byte[32]);
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user