You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2026/09/30 12:06:21 UTC
(tomcat) branch main updated: Remove unnecessary cast
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 b72d38671a Remove unnecessary cast
b72d38671a is described below
commit b72d38671ad3dfe187fb06a71733b1357f404eba
Author: Mark Thomas <ma...@apache.org>
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 11902b0df7..d8f0391297 100644
--- a/test/org/apache/catalina/core/TestApplicationServletRegistration.java
+++ b/test/org/apache/catalina/core/TestApplicationServletRegistration.java
@@ -120,7 +120,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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org