You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2021/07/28 20:32:59 UTC
[tomcat] branch 10.0.x updated: Remove Java 7 references
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.0.x by this push:
new 3b235da Remove Java 7 references
3b235da is described below
commit 3b235da8487a6ec8b8f29fcedfcaa91f8db78c27
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Jul 28 21:32:10 2021 +0100
Remove Java 7 references
---
java/org/apache/tomcat/jni/Library.java | 12 ++----------
java/org/apache/tomcat/util/net/SSLUtilBase.java | 3 +--
2 files changed, 3 insertions(+), 12 deletions(-)
diff --git a/java/org/apache/tomcat/jni/Library.java b/java/org/apache/tomcat/jni/Library.java
index 4cdf330..09fe13a 100644
--- a/java/org/apache/tomcat/jni/Library.java
+++ b/java/org/apache/tomcat/jni/Library.java
@@ -40,11 +40,7 @@ public final class Library {
try {
System.load(library.getAbsolutePath());
loaded = true;
- } catch (ThreadDeath t) {
- throw t;
- } catch (VirtualMachineError t) {
- // Don't use a Java 7 multiple exception catch so we can keep
- // the JNI code identical between Tomcat 6/7/8/9
+ } catch (ThreadDeath | VirtualMachineError t) {
throw t;
} catch (Throwable t) {
if (library.exists()) {
@@ -67,11 +63,7 @@ public final class Library {
try {
System.loadLibrary(value);
loaded = true;
- } catch (ThreadDeath t) {
- throw t;
- } catch (VirtualMachineError t) {
- // Don't use a Java 7 multiple exception catch so we can keep
- // the JNI code identical between Tomcat 6/7/8/9
+ } catch (ThreadDeath | VirtualMachineError t) {
throw t;
} catch (Throwable t) {
String name = System.mapLibraryName(value);
diff --git a/java/org/apache/tomcat/util/net/SSLUtilBase.java b/java/org/apache/tomcat/util/net/SSLUtilBase.java
index 56453f3..b201201 100644
--- a/java/org/apache/tomcat/util/net/SSLUtilBase.java
+++ b/java/org/apache/tomcat/util/net/SSLUtilBase.java
@@ -201,8 +201,7 @@ public abstract class SSLUtilBase implements SSLUtil {
// Unfortunately, some key stores behave differently with null
// and "".
// JKS key stores treat null and "" interchangeably.
- // PKCS12 key stores (Java 7 onwards) don't return the cert if
- // null is used.
+ // PKCS12 key stores don't return the cert if null is used.
// Key stores that do not use passwords expect null
// Therefore:
// - generally use null if pass is null or ""
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org