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

tv pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jcs.git

commit 14a94464d17994e9d4897bbc10a6524a654f5572
Author: Thomas Vandahl <t...@apache.org>
AuthorDate: Thu Jun 12 10:23:30 2025 +0200

    Fix test
---
 .../jcs3/auxiliary/remote/http/server/RemoteHttpCacheServlet.java   | 6 ++----
 .../remote/http/server/RemoteHttpCacheServletUnitTest.java          | 2 +-
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git 
a/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/remote/http/server/RemoteHttpCacheServlet.java
 
b/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/remote/http/server/RemoteHttpCacheServlet.java
index 2d305228..90f43e64 100644
--- 
a/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/remote/http/server/RemoteHttpCacheServlet.java
+++ 
b/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/remote/http/server/RemoteHttpCacheServlet.java
@@ -42,7 +42,6 @@ import org.apache.commons.jcs3.log.Log;
 import org.apache.commons.jcs3.utils.config.PropertySetter;
 import org.apache.commons.jcs3.utils.serialization.StandardSerializer;
 
-import jakarta.servlet.ServletConfig;
 import jakarta.servlet.ServletException;
 import jakarta.servlet.http.HttpServlet;
 import jakarta.servlet.http.HttpServletRequest;
@@ -163,11 +162,10 @@ public class RemoteHttpCacheServlet
      * <p>
      * This provides an easy extension point. Simply extend this servlet and 
override the init
      * method to change the way the properties are loaded.
-     * @param config
      * @throws ServletException
      */
     @Override
-    public void init( final ServletConfig config )
+    public void init()
         throws ServletException
     {
         try
@@ -181,7 +179,7 @@ public class RemoteHttpCacheServlet
 
         remoteCacheService = createRemoteHttpCacheService( cacheMgr );
 
-        super.init( config );
+        super.init();
     }
 
     /**
diff --git 
a/commons-jcs3-core/src/test/java/org/apache/commons/jcs3/auxiliary/remote/http/server/RemoteHttpCacheServletUnitTest.java
 
b/commons-jcs3-core/src/test/java/org/apache/commons/jcs3/auxiliary/remote/http/server/RemoteHttpCacheServletUnitTest.java
index 164bc09b..36b7a8bb 100644
--- 
a/commons-jcs3-core/src/test/java/org/apache/commons/jcs3/auxiliary/remote/http/server/RemoteHttpCacheServletUnitTest.java
+++ 
b/commons-jcs3-core/src/test/java/org/apache/commons/jcs3/auxiliary/remote/http/server/RemoteHttpCacheServletUnitTest.java
@@ -47,7 +47,7 @@ class RemoteHttpCacheServletUnitTest
         throws Exception
     {
         servlet = new RemoteHttpCacheServlet();
-        servlet.init(null);
+        servlet.init();
 
         remoteHttpCacheService = new MockRemoteCacheService<>();
         servlet.setRemoteCacheService( remoteHttpCacheService );

Reply via email to