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

markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new fcbada763d Simplify (and fix IDE warning)
fcbada763d is described below

commit fcbada763ddf6087b406b1208ce34eca9034b325
Author: Mark Thomas <ma...@apache.org>
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: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to