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

remm pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit 7dd25ff71835dae52f3363de58215e5fdf8c45e7
Author: remm <r...@apache.org>
AuthorDate: Fri Sep 27 10:23:34 2024 +0200

    Checkstyle and comment
---
 test/org/apache/catalina/authenticator/TestFormAuthenticatorA.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/org/apache/catalina/authenticator/TestFormAuthenticatorA.java 
b/test/org/apache/catalina/authenticator/TestFormAuthenticatorA.java
index 2b24015b63..c748711c0f 100644
--- a/test/org/apache/catalina/authenticator/TestFormAuthenticatorA.java
+++ b/test/org/apache/catalina/authenticator/TestFormAuthenticatorA.java
@@ -40,11 +40,11 @@ import org.apache.catalina.startup.TesterMapRealm;
 import org.apache.catalina.startup.TesterServlet;
 import org.apache.catalina.startup.Tomcat;
 import org.apache.catalina.startup.TomcatBaseTest;
+import org.apache.tomcat.util.buf.ByteChunk;
 import org.apache.tomcat.util.descriptor.web.LoginConfig;
 import org.apache.tomcat.util.descriptor.web.SecurityCollection;
 import org.apache.tomcat.util.descriptor.web.SecurityConstraint;
 import org.apache.tomcat.websocket.server.WsContextListener;
-import org.apache.tomcat.util.buf.ByteChunk;
 
 /*
  * Test FORM authentication for sessions that do and do not use cookies.
@@ -222,7 +222,7 @@ public class TestFormAuthenticatorA extends TomcatBaseTest {
 
 
     /*
-     * Test to ensure that the Expir and 
+     * Test to ensure that the expire and date headers use a GMT date.
      */
     @Test
     public void testDateAndExpireHeadersUseGMT() throws Exception {
@@ -235,7 +235,7 @@ public class TestFormAuthenticatorA extends TomcatBaseTest {
         ctxt.getPipeline().addValve(form);
         tomcat.start();
 
-        Map<String,List<String>> responseHeaders = new HashMap();
+        Map<String,List<String>> responseHeaders = new HashMap<>();
         ByteChunk bc = new ByteChunk();
         String path = "http://localhost:"; + getPort() + 
"/examples/jsp/security/protected/index.jsp";
         int rc = getUrl(path, bc, responseHeaders);


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

Reply via email to