(tomcat) branch 10.1.x updated: Switch to non-deprecated methods

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

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

commit 5b30b4c937b91c178e38cc6b08254241a300ea25
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.