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

markt 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 ab6503486c Fix unboxing warnings
ab6503486c is described below

commit ab6503486c3527720c991feb0d0429ef426ccd4d
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

Reply via email to