Skip to content

Commit a12d7bd

Browse files
committed
[build] 9: '_' is a keyword, and may not be used as an identifier
1 parent bb121aa commit a12d7bd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,10 +295,11 @@ public IRubyObject set_oid(final ThreadContext context, IRubyObject arg) {
295295
throw context.runtime.newTypeError(arg, context.runtime.getString());
296296
}
297297

298+
private static final byte[] NULL = ByteList.NULL_ARRAY;
299+
298300
private static final byte[] CA_ = {'C', 'A', ':'};
299301
private static final byte[] TRUE = {'T', 'R', 'U', 'E'};
300302
private static final byte[] FALSE = {'F', 'A', 'L', 'S', 'E'};
301-
private static final byte[] _ = {};
302303
private static final byte[] SEP = {',', ' '};
303304
private static final byte[] Decipher_Only = {'D', 'e', 'c', 'i', 'p', 'h', 'e', 'r', ' ', 'O', 'n', 'l', 'y'};
304305
private static final byte[] Digital_Signature = {'D', 'i', 'g', 'i', 't', 'a', 'l', ' ', 'S', 'i', 'g', 'n', 'a', 't', 'u', 'r', 'e'};
@@ -356,7 +357,7 @@ public RubyString value(final ThreadContext context) {
356357
if ( oid.equals("2.5.29.15") ) { // keyUsage
357358
final byte[] enc = getRealValueEncoded();
358359
byte b3 = 0; byte b2 = enc[2]; if ( enc.length > 3 ) b3 = enc[3];
359-
final ByteList val = new ByteList(64); byte[] sep = _;
360+
final ByteList val = new ByteList(64); byte[] sep = NULL;
360361
if ((b2 & (byte) 128) != 0) {
361362
val.append(sep); val.append(Decipher_Only); sep = SEP;
362363
}
@@ -388,7 +389,7 @@ public RubyString value(final ThreadContext context) {
388389
}
389390
if ( oid.equals("2.16.840.1.113730.1.1") ) { // nsCertType
390391
final byte b0 = getRealValueEncoded()[0];
391-
final ByteList val = new ByteList(64); byte[] sep = _;
392+
final ByteList val = new ByteList(64); byte[] sep = NULL;
392393
if ((b0 & (byte) 128) != 0) {
393394
val.append(sep); val.append(SSL_Client); sep = SEP;
394395
}

0 commit comments

Comments
 (0)