This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new ea5dc11a00 Simplify (and fix IDE warning)
ea5dc11a00 is described below
commit ea5dc11a006bfe166f3c8100c85a8e78e5cfebe3
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 834588e547..987cac39c0 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]