Skip to content

Commit 5609f36

Browse files
committed
align PKey internal key naming + volatile internals as well (not sure they matter)
1 parent 2649f70 commit 5609f36

File tree

2 files changed

+87
-88
lines changed

2 files changed

+87
-88
lines changed

src/main/java/org/jruby/ext/openssl/PKeyDSA.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
*/
7474
public class PKeyDSA extends PKey {
7575
private static final long serialVersionUID = 6351851846414049890L;
76-
76+
7777
private static ObjectAllocator PKEYDSA_ALLOCATOR = new ObjectAllocator() {
7878
public IRubyObject allocate(Ruby runtime, RubyClass klass) {
7979
return new PKeyDSA(runtime, klass);
@@ -107,8 +107,8 @@ public PKeyDSA(Ruby runtime, RubyClass type, DSAPrivateKey privKey, DSAPublicKey
107107
this(runtime, _DSA(runtime), null, pubKey);
108108
}
109109

110-
private DSAPublicKey publicKey;
111-
private transient DSAPrivateKey privateKey;
110+
private volatile DSAPublicKey publicKey;
111+
private volatile transient DSAPrivateKey privateKey;
112112

113113
// specValues holds individual DSAPublicKeySpec components. this allows
114114
// a public key to be constructed incrementally, as required by the

0 commit comments

Comments
 (0)