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 64e48faa9b3bff59d17c50ed0d4cd652d262d636 Author: Mark Thomas <ma...@apache.org> AuthorDate: Tue Oct 22 08:34:52 2024 +0100 Fix unboxing warnings --- test/org/apache/catalina/servlets/TestWebdavServlet.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/org/apache/catalina/servlets/TestWebdavServlet.java b/test/org/apache/catalina/servlets/TestWebdavServlet.java index 02f90ee385..99f4e9bd13 100644 --- a/test/org/apache/catalina/servlets/TestWebdavServlet.java +++ b/test/org/apache/catalina/servlets/TestWebdavServlet.java @@ -613,7 +613,7 @@ public class TestWebdavServlet extends TomcatBaseTest { Assert.assertTrue(client.getResponseBody().contains("Second-")); String timeoutValue = client.getResponseBody().substring(client.getResponseBody().indexOf("Second-")); timeoutValue = timeoutValue.substring("Second-".length(), timeoutValue.indexOf('<')); - Assert.assertTrue(Integer.valueOf(timeoutValue) <= 20); + Assert.assertTrue(Integer.valueOf(timeoutValue).intValue() <= 20); // Unlock /myfolder again client.setRequest(new String[] { "UNLOCK /myfolder/ HTTP/1.1" + SimpleHttpClient.CRLF + @@ -825,7 +825,7 @@ public class TestWebdavServlet extends TomcatBaseTest { Assert.assertTrue(client.getResponseBody().contains("Second-")); String timeoutValue = client.getResponseBody().substring(client.getResponseBody().indexOf("Second-")); timeoutValue = timeoutValue.substring("Second-".length(), timeoutValue.indexOf('<')); - Assert.assertTrue(Integer.valueOf(timeoutValue) > 100000); + Assert.assertTrue(Integer.valueOf(timeoutValue).intValue() > 100000); client.setRequest(new String[] { "PUT /myfolder/myfolder2/myfolder4/myfolder5/file4.txt HTTP/1.1" + SimpleHttpClient.CRLF + "Host: localhost:" + getPort() + SimpleHttpClient.CRLF + --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org