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

rmaucher 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 fea377bad3 Java compatibility
fea377bad3 is described below

commit fea377bad310b1b9694e47cc7647e393f83acc90
Author: remm <[email protected]>
AuthorDate: Tue Oct 13 11:41:04 2026 +0200

    Java compatibility
---
 java/org/apache/catalina/servlets/DefaultServlet.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/servlets/DefaultServlet.java 
b/java/org/apache/catalina/servlets/DefaultServlet.java
index cd1cf3837b..cb595790a6 100644
--- a/java/org/apache/catalina/servlets/DefaultServlet.java
+++ b/java/org/apache/catalina/servlets/DefaultServlet.java
@@ -1434,7 +1434,7 @@ public class DefaultServlet extends HttpServlet {
                     continue;
                 }
                 if ("*".equals(encoding)) {
-                    bestResource = precompressedResources.getFirst();
+                    bestResource = precompressedResources.get(0);
                     bestResourceQuality = quality;
                     bestResourcePreference = 0;
                     continue;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to