This is an automated email from the ASF dual-hosted git repository.

remm 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 1cd8425afc Improve code
1cd8425afc is described below

commit 1cd8425afc69a741348a4568d38da44b63586a2b
Author: remm <r...@apache.org>
AuthorDate: Tue Sep 19 14:32:20 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 e75827d5e1..29cbef3b80 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -295,10 +295,9 @@ public abstract class AbstractEndpoint<S,U> {
                 isSSLEnabled()) {
             try {
                 createSSLContext(sslHostConfig);
+            } catch (IllegalArgumentException e) {
+                throw e;
             } catch (Exception e) {
-                if (e instanceof IllegalArgumentException) {
-                    throw e;
-                }
                 throw new IllegalArgumentException(e);
             }
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to