You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2024/10/22 12:17:05 UTC
(tomcat) 13/19: Fix unboxing warnings
This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 564f9f15a9ea7ebd205ed6564fb1e1c54482ad5d
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 234ad5dbfe..f8c3546c58 100644
--- a/test/org/apache/catalina/servlets/TestWebdavServlet.java
+++ b/test/org/apache/catalina/servlets/TestWebdavServlet.java
@@ -612,7 +612,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 +
@@ -824,7 +824,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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org