Skip to content

Commit 85a1ab2

Browse files
committed
Merge branch 'master' into review
Conflicts: src/net/i2p/crypto/eddsa/math/ed25519/Ed25519FieldElement.java
2 parents 30837cb + b539522 commit 85a1ab2

File tree

5 files changed

+206
-288
lines changed

5 files changed

+206
-288
lines changed

src/net/i2p/crypto/eddsa/math/Encoding.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
public abstract class Encoding {
1010
protected Field f;
1111

12-
public void setField(Field f) {
12+
public synchronized void setField(Field f) {
13+
if (this.f != null)
14+
throw new IllegalStateException("already set");
1315
this.f = f;
1416
}
1517

0 commit comments

Comments
 (0)