This is an automated email from the ASF dual-hosted git repository.
remm 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 64a7cfbd52 Checkstyle and comment
64a7cfbd52 is described below
commit 64a7cfbd5265a47cccb712d9f88f8ae6de6ae411
Author: remm <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]