This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new 0046c6cf4e Improve code
0046c6cf4e is described below
commit 0046c6cf4e464596e180dab9c705ec9d049d9fa9
Author: remm <[email protected]>
AuthorDate: Tue Sep 19 14:32:54 2023 +0200
Improve code
---
java/org/apache/tomcat/util/net/AbstractEndpoint.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
index 95c2512eae..43d5ee4f94 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -268,10 +268,9 @@ public abstract class AbstractEndpoint<S,U> {
isSSLEnabled()) {
try {
createSSLContext(sslHostConfig);
+ } catch (IllegalArgumentException e) {
+ throw e;
} catch (Exception e) {
- if (e instanceof IllegalArgumentException) {
- throw (IllegalArgumentException) e;
- }
throw new IllegalArgumentException(e);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]