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

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

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


The following commit(s) were added to refs/heads/11.0.x by this push:
     new 413a060500 Switch to non-deprecated methods
413a060500 is described below

commit 413a060500385a608d02ff7a8e8dfa6e4ca2660a
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.