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 ee39d1cf4e Simplify (and fix IDE warning)
ee39d1cf4e is described below
commit ee39d1cf4eadcc692dfe4d30e3503f7752d2b55e
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]