We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f1dcfc commit 40c623fCopy full SHA for 40c623f
java/org/apache/tomcat/util/openssl/openssl_h_Compatibility.java
@@ -297,17 +297,9 @@ class Holder {
297
* }
298
*/
299
public static int ENGINE_register_all_complete() {
300
- class Holder {
301
- static final FunctionDescriptor DESC = FunctionDescriptor.of(
302
- openssl_h.C_INT );
303
-
304
- static final MethodHandle MH = Linker.nativeLinker().downcallHandle(
305
- openssl_h.findOrThrow("ENGINE_register_all_complete"),
306
- DESC);
307
- }
308
- var mh$ = Holder.MH;
309
try {
310
- return (int) mh$.invokeExact();
+ return (int) Linker.nativeLinker().downcallHandle(openssl_h.findOrThrow("ENGINE_register_all_complete"),
+ FunctionDescriptor.of(JAVA_INT)).invokeExact();
311
} catch (Throwable ex$) {
312
throw new AssertionError("should not reach here", ex$);
313
}
0 commit comments