This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 372f3cefe6 Fix IDE warnings
372f3cefe6 is described below
commit 372f3cefe6225b58fcdae7c344d81396b8e08570
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Sep 27 11:21:48 2024 +0100
Fix IDE warnings
---
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 91b1da1a3c..fb89945a87 100644
--- a/test/org/apache/catalina/authenticator/TestFormAuthenticatorA.java
+++ b/test/org/apache/catalina/authenticator/TestFormAuthenticatorA.java
@@ -239,16 +239,16 @@ public class TestFormAuthenticatorA extends
TomcatBaseTest {
ByteChunk bc = new ByteChunk();
String path = "http://localhost:" + getPort() +
"/examples/jsp/security/protected/index.jsp";
int rc = getUrl(path, bc, responseHeaders);
- Assert.assertTrue(String.format("Expecting 200, but got ", rc), rc ==
200);
+ Assert.assertTrue(String.format("Expecting 200, but got ",
Integer.valueOf(rc)), rc == 200);
String expiresDate = responseHeaders.get("Expires").get(0).toString();
String ExpectedDateFormatRegx = "^[A-za-z]{3}, \\d{2} \\w{3} \\d{4}
\\d{2}:\\d{2}:\\d{2} GMT$";
Pattern pattern = Pattern.compile(ExpectedDateFormatRegx);
- Matcher matcher = pattern.matcher((CharSequence)expiresDate);
+ Matcher matcher = pattern.matcher(expiresDate);
Assert.assertTrue("Expires header date not in expected format",
matcher.matches());
String Date = responseHeaders.get("Date").get(0).toString();
- matcher = pattern.matcher((CharSequence)Date);
+ matcher = pattern.matcher(Date);
Assert.assertTrue("Date header not in expected format",
matcher.matches());
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]