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

markt 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 4f677773ee Fix Java 11 source compatibility
4f677773ee is described below

commit 4f677773ee0786ce9d2a1af5df7e1f054bff06a7
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Jun 27 17:34:09 2024 +0100

    Fix Java 11 source compatibility
---
 test/org/apache/catalina/manager/TestStatusTransformer.java | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/test/org/apache/catalina/manager/TestStatusTransformer.java 
b/test/org/apache/catalina/manager/TestStatusTransformer.java
index 78bcba76c8..c92f67a7df 100644
--- a/test/org/apache/catalina/manager/TestStatusTransformer.java
+++ b/test/org/apache/catalina/manager/TestStatusTransformer.java
@@ -91,9 +91,14 @@ public class TestStatusTransformer extends TomcatBaseTest {
 
         String requestline = null;
         switch (mode) {
-            case XML -> requestline = "GET /status/all?XML=true HTTP/1.1";
-            case JSON -> requestline = "GET /status/all?JSON=true HTTP/1.1";
-            default -> requestline = "GET /status/all HTTP/1.1";
+            case XML:
+                requestline = "GET /status/all?XML=true HTTP/1.1";
+                break;
+            case JSON:
+                requestline = "GET /status/all?JSON=true HTTP/1.1";
+                break;
+            default:
+                requestline = "GET /status/all HTTP/1.1";
         }
         client.setRequest(new String[] {
                 requestline + CRLF +


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

Reply via email to