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 95d7980498 Simplify (and fix IDE warning)
95d7980498 is described below
commit 95d7980498172aceee9d557404477a53a50766a3
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Jan 13 09:38:42 2025 +0000
Simplify (and fix IDE warning)
---
java/org/apache/catalina/webresources/CachedResource.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/webresources/CachedResource.java
b/java/org/apache/catalina/webresources/CachedResource.java
index ff2be74844..a19ebc1dde 100644
--- a/java/org/apache/catalina/webresources/CachedResource.java
+++ b/java/org/apache/catalina/webresources/CachedResource.java
@@ -249,7 +249,7 @@ public class CachedResource implements WebResource {
@Override
public long getContentLength() {
if (webResource == null) {
- return Long.valueOf(0);
+ return 0;
}
/*
* Cache the content length for two reasons.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]