Skip to content

Commit 991b92a

Browse files
committed
[refactor] do not lookup OpenSSL module since its there as a param
1 parent 77edfdd commit 991b92a

2 files changed

Lines changed: 4 additions & 108 deletions

File tree

lib/jopenssl24.rb

Lines changed: 0 additions & 104 deletions
This file was deleted.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ public IRubyObject allocate(Ruby runtime, RubyClass klass) {
8888
}
8989
};
9090

91-
public static void createPKCS7(final Ruby runtime, final RubyModule _OpenSSL) {
92-
RubyClass _PKCS7 = _OpenSSL.defineClassUnder("PKCS7", runtime.getObject(), PKCS7_ALLOCATOR);
93-
RubyClass _OpenSSLError = runtime.getModule("OpenSSL").getClass("OpenSSLError");
94-
_PKCS7.defineClassUnder("PKCS7Error", _OpenSSLError, _OpenSSLError.getAllocator());
91+
public static void createPKCS7(final Ruby runtime, final RubyModule OpenSSL) {
92+
RubyClass _PKCS7 = OpenSSL.defineClassUnder("PKCS7", runtime.getObject(), PKCS7_ALLOCATOR);
93+
RubyClass OpenSSLError = OpenSSL.getClass("OpenSSLError");
94+
_PKCS7.defineClassUnder("PKCS7Error", OpenSSLError, OpenSSLError.getAllocator());
9595
_PKCS7.addReadWriteAttribute(runtime.getCurrentContext(), "data");
9696
_PKCS7.addReadWriteAttribute(runtime.getCurrentContext(), "error_string");
9797
_PKCS7.defineAnnotatedMethods(PKCS7.class);

0 commit comments

Comments
 (0)