This is an automated email from the ASF dual-hosted git repository.

markt 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 1052278181 Fix IDE warning
1052278181 is described below

commit 105227818140b3971c9709c5ddfd99761bded242
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Dec 3 13:52:24 2024 +0000

    Fix IDE warning
---
 java/org/apache/catalina/session/DataSourceStore.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/session/DataSourceStore.java 
b/java/org/apache/catalina/session/DataSourceStore.java
index d245c7c838..ff56fd2137 100644
--- a/java/org/apache/catalina/session/DataSourceStore.java
+++ b/java/org/apache/catalina/session/DataSourceStore.java
@@ -633,7 +633,7 @@ public class DataSourceStore extends StoreBase {
             } else {
                 try {
                     // This should be the normal way to lookup for the global 
in the global context (no comp/env)
-                    Service service = Container.getService((Container) 
context);
+                    Service service = Container.getService(context);
                     if (service != null) {
                         Server server = service.getServer();
                         if (server != null) {


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to