Skip to content

Commit 32e7fd6

Browse files
committed
rename + finalize ALLOCATOR static field
1 parent 626b12b commit 32e7fd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ public class SSLSocket extends RubyObject {
8080

8181
private static final long serialVersionUID = -2084816623554406237L;
8282

83-
private static ObjectAllocator SSLSOCKET_ALLOCATOR = new ObjectAllocator() {
83+
private static final ObjectAllocator ALLOCATOR = new ObjectAllocator() {
8484
public IRubyObject allocate(Ruby runtime, RubyClass klass) {
8585
return new SSLSocket(runtime, klass);
8686
}
8787
};
8888

8989
public static void createSSLSocket(final Ruby runtime, final RubyModule SSL) { // OpenSSL::SSL
9090
final ThreadContext context = runtime.getCurrentContext();
91-
RubyClass SSLSocket = SSL.defineClassUnder("SSLSocket", runtime.getObject(), SSLSOCKET_ALLOCATOR);
91+
RubyClass SSLSocket = SSL.defineClassUnder("SSLSocket", runtime.getObject(), ALLOCATOR);
9292
// SSLSocket.addReadAttribute(context, "io");
9393
// SSLSocket.defineAlias("to_io", "io");
9494
// SSLSocket.addReadAttribute(context, "context");

0 commit comments

Comments
 (0)