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 ad1162bcd2 Fix IDE warnings ad1162bcd2 is described below commit ad1162bcd23bbc173c20ce0fbf4ec7a750efb9f0 Author: Mark Thomas <ma...@apache.org> 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 c748711c0f..00b63783aa 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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org