3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 07:12:17 +00:00

Make curve and bits in LazyECPoint final.

This commit is contained in:
Andreas Schildbach 2014-12-11 22:40:13 +01:00
parent 4499e0f7c1
commit e5bc481743

View File

@ -18,11 +18,11 @@ public class LazyECPoint {
// If curve is set, bits is also set. If curve is unset, point is set and bits is unset. Point can be set along
// with curve and bits when the cached form has been accessed and thus must have been converted.
// These fields are all effectively final - once set they won't change again. However they can be set after
// construction.
private ECCurve curve;
private byte[] bits;
private final ECCurve curve;
private final byte[] bits;
// This field is effectively final - once set it won't change again. However it can be set after
// construction.
@Nullable
private ECPoint point;
@ -33,6 +33,8 @@ public class LazyECPoint {
public LazyECPoint(ECPoint point) {
this.point = checkNotNull(point);
this.curve = null;
this.bits = null;
}
public ECPoint get() {