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 a0733659dc Remove unnecessary cast
a0733659dc is described below

commit a0733659dc11ac2b6de3e493018475c83b7acc3d
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Sep 30 13:06:06 2026 +0100

    Remove unnecessary cast
---
 test/org/apache/catalina/core/TestApplicationServletRegistration.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/test/org/apache/catalina/core/TestApplicationServletRegistration.java 
b/test/org/apache/catalina/core/TestApplicationServletRegistration.java
index 8cb90c3257..b2b4a43cfb 100644
--- a/test/org/apache/catalina/core/TestApplicationServletRegistration.java
+++ b/test/org/apache/catalina/core/TestApplicationServletRegistration.java
@@ -129,7 +129,7 @@ public class TestApplicationServletRegistration extends 
TomcatBaseTest {
         }
 
         try {
-            ((ServletRegistration.Dynamic) registration).addMapping("/other");
+            registration.addMapping("/other");
             Assert.fail("Expected an IllegalStateException after 
initialisation");
         } catch (IllegalStateException e) {
             // Expected


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

Reply via email to