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

markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 74a5ebefbe Align comments
74a5ebefbe is described below

commit 74a5ebefbe55a2d1d2c66e332f826cadb3ab30f0
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Jun 18 08:55:41 2026 +0100

    Align comments
---
 test/org/apache/tomcat/util/net/TestSslHandshakeFailure.java | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/test/org/apache/tomcat/util/net/TestSslHandshakeFailure.java 
b/test/org/apache/tomcat/util/net/TestSslHandshakeFailure.java
index 3093fa4378..f271e3dc7e 100644
--- a/test/org/apache/tomcat/util/net/TestSslHandshakeFailure.java
+++ b/test/org/apache/tomcat/util/net/TestSslHandshakeFailure.java
@@ -84,15 +84,14 @@ public class TestSslHandshakeFailure extends TomcatBaseTest 
{
             getUrl("https://localhost:"; + getPort() + "/");
             Assert.fail("SSLHandshakeException expected, but handshake did not 
fail");
         } catch (SSLHandshakeException e) {
-            // Java 8 might throw SSLException instead of SSLHandshakeException
+            // Expected
         } catch (SSLException e) {
+            // Java 8 might throw SSLException instead of SSLHandshakeException
             if (JreCompat.isJre9Available()) {
                 throw(e);
             }
         } catch (SocketException e) {
-            // SocketException has also been observed
+            // Expected - SocketException has also been observed (less often)
         }
-
     }
-
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to