Skip to content

Commit 1cda6bb

Browse files
committed
static ALLOCATOR gets final
1 parent 5143a75 commit 1cda6bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/java/arjdbc/jdbc/RubyJdbcConnection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ protected RubyJdbcConnection(Ruby runtime, RubyClass metaClass) {
102102
super(runtime, metaClass);
103103
}
104104

105-
private static ObjectAllocator JDBCCONNECTION_ALLOCATOR = new ObjectAllocator() {
105+
private static final ObjectAllocator ALLOCATOR = new ObjectAllocator() {
106106
public IRubyObject allocate(Ruby runtime, RubyClass klass) {
107107
return new RubyJdbcConnection(runtime, klass);
108108
}
109109
};
110110

111111
public static RubyClass createJdbcConnectionClass(final Ruby runtime) {
112112
RubyClass jdbcConnection = getConnectionAdapters(runtime).
113-
defineClassUnder("JdbcConnection", runtime.getObject(), JDBCCONNECTION_ALLOCATOR);
113+
defineClassUnder("JdbcConnection", runtime.getObject(), ALLOCATOR);
114114
jdbcConnection.defineAnnotatedMethods(RubyJdbcConnection.class);
115115
return jdbcConnection;
116116
}

0 commit comments

Comments
 (0)