3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-13 10:45:51 +00:00

Sha256Hash is immutable so byte[] should be marked as final.

This commit is contained in:
Mike Hearn 2015-03-05 13:43:25 -08:00
parent c30df6ca25
commit bf60a925bc

View File

@ -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]);
/**