This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 1bea43b3a3 Fix IDE warnings
1bea43b3a3 is described below
commit 1bea43b3a3402e859e859debf4f632f8b220eae9
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Dec 4 21:01:59 2023 +0000
Fix IDE warnings
---
java/org/apache/tomcat/util/net/openssl/panama/OpenSSLLibrary.java | 4 +---
java/org/apache/tomcat/util/openssl/openssl_h.java | 4 ++--
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/java/org/apache/tomcat/util/net/openssl/panama/OpenSSLLibrary.java
b/java/org/apache/tomcat/util/net/openssl/panama/OpenSSLLibrary.java
index 418af902ff..d184189074 100644
--- a/java/org/apache/tomcat/util/net/openssl/panama/OpenSSLLibrary.java
+++ b/java/org/apache/tomcat/util/net/openssl/panama/OpenSSLLibrary.java
@@ -81,7 +81,6 @@ public class OpenSSLLibrary {
if (OpenSSLStatus.isLibraryInitialized()) {
return;
}
- @SuppressWarnings("deprecation")
long initParam = (OpenSSL_version_num() >= 0x3000000fL) ? 0 :
OPENSSL_INIT_ENGINE_ALL_BUILTIN();
OPENSSL_init_ssl(initParam, MemorySegment.NULL);
OpenSSLStatus.setLibraryInitialized(true);
@@ -160,7 +159,6 @@ public class OpenSSLLibrary {
}
}
- @SuppressWarnings("deprecation")
public static void init() {
synchronized (lock) {
@@ -329,7 +327,7 @@ public class OpenSSLLibrary {
}
}
- @SuppressWarnings("deprecation")
+
public static void destroy() {
synchronized (lock) {
if (!OpenSSLStatus.isInitialized()) {
diff --git a/java/org/apache/tomcat/util/openssl/openssl_h.java
b/java/org/apache/tomcat/util/openssl/openssl_h.java
index c95387a545..cec6621950 100644
--- a/java/org/apache/tomcat/util/openssl/openssl_h.java
+++ b/java/org/apache/tomcat/util/openssl/openssl_h.java
@@ -5122,7 +5122,7 @@ public class openssl_h {
throw new AssertionError("should not reach here", ex$);
}
}
- private static final MemorySegment OPENSSL_FILE =
Arena.ofAuto().allocateFrom("/tmp/jextract$17086606898854816972.h");;
+ private static final MemorySegment OPENSSL_FILE =
Arena.ofAuto().allocateFrom("/tmp/jextract$17086606898854816972.h");
/**
* {@snippet lang=c :
@@ -5182,7 +5182,7 @@ public class openssl_h {
public static int EVP_PKEY_DSA() {
return EVP_PKEY_DSA;
}
- private static final MemorySegment PEM_STRING_ECPARAMETERS =
Arena.ofAuto().allocateFrom("EC PARAMETERS");;
+ private static final MemorySegment PEM_STRING_ECPARAMETERS =
Arena.ofAuto().allocateFrom("EC PARAMETERS");
/**
* {@snippet lang=c :
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]