(tomcat) branch main updated: Switch to non-deprecated methods

[email protected]
Newsgroups gmane.comp.jakarta.tomcat.devel
Message-ID <178646060115.2416000.16271704589082357135@gitbox3-he-fi.apache.org>
This is an automated email from the ASF dual-hosted git repository.

markt-asf 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 2c18651c51 Switch to non-deprecated methods
2c18651c51 is described below

commit 2c18651c51bf53dfa564fafea4b7becbe6c6aa82
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Aug 11 16:03:14 2026 +0100

    Switch to non-deprecated methods
---
 test/org/apache/tomcat/websocket/TestWebSocketFrameClient.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/org/apache/tomcat/websocket/TestWebSocketFrameClient.java b/test/org/apache/tomcat/websocket/TestWebSocketFrameClient.java
index 8aa374629d..0d2880701a 100644
--- a/test/org/apache/tomcat/websocket/TestWebSocketFrameClient.java
+++ b/test/org/apache/tomcat/websocket/TestWebSocketFrameClient.java
@@ -205,7 +205,7 @@ public class TestWebSocketFrameClient extends WebSocketBaseTest {
         Context ctx = tomcat.addContext(URI_PROTECTED, null);
         ctx.addApplicationListener(TesterEchoServer.Config.class.getName());
         Tomcat.addServlet(ctx, "default", new DefaultServlet());
-        ctx.addServletMappingDecoded("/", "default");
+        ctx.addServletMapping("/", "default");
         Tomcat.addServlet(ctx, "invalidate", new HttpServlet() {
 
             @Override
@@ -213,7 +213,7 @@ public class TestWebSocketFrameClient extends WebSocketBaseTest {
                 req.getSession(false).invalidate();
             }
         });
-        ctx.addServletMappingDecoded("/invalidate", "invalidate");
+        ctx.addServletMapping("/invalidate", "invalidate");
         Tomcat.addServlet(ctx, "changeSessionID", new HttpServlet() {
 
             @Override
@@ -221,10 +221,10 @@ public class TestWebSocketFrameClient extends WebSocketBaseTest {
                 req.changeSessionId();
             }
         });
-        ctx.addServletMappingDecoded("/changeSessionID", "changeSessionID");
+        ctx.addServletMapping("/changeSessionID", "changeSessionID");
 
         SecurityCollection collection = new SecurityCollection();
-        collection.addPatternDecoded("/*");
+        collection.addPattern("/*");
 
         tomcat.addUser(USER, PWD);
         tomcat.addRole(USER, ROLE);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.