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

markt-asf 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 5a5aa76e38 Add note since this class is generated
5a5aa76e38 is described below

commit 5a5aa76e387703e68c85019b2ad4e74c65072581
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Nov 5 16:24:04 2026 +0000

    Add note since this class is generated
---
 java/org/apache/el/parser/SimpleCharStream.java | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/java/org/apache/el/parser/SimpleCharStream.java 
b/java/org/apache/el/parser/SimpleCharStream.java
index ee841ae628..1cd2f62195 100644
--- a/java/org/apache/el/parser/SimpleCharStream.java
+++ b/java/org/apache/el/parser/SimpleCharStream.java
@@ -3,8 +3,8 @@
 package org.apache.el.parser;
 
 /**
- * A simple character stream implementation used by the EL parser. The stream 
is char[]-based and fully supports
- * 16-bit characters.
+ * A simple character stream implementation used by the EL parser. The stream 
is char[]-based and fully supports 16-bit
+ * characters.
  */
 
 @SuppressWarnings("all") // Ignore warnings in generated code
@@ -43,10 +43,13 @@ public class SimpleCharStream {
 
 
     protected void ExpandBuff(boolean wrapAround) {
-        // Grow the buffer geometrically. Growing by a fixed amount, as was
-        // done previously, makes the total cost of reading a single token
-        // that is larger than the initial buffer quadratic, since the entire
-        // contents of the buffer are copied on every expansion.
+        /*
+         * Grow the buffer geometrically. Growing by a fixed amount, as was 
done previously, makes the total cost of
+         * reading a single token that is larger than the initial buffer 
quadratic, since the entire contents of the
+         * buffer are copied on every expansion.
+         *
+         * Restore this fix after code regeneration.
+         */
         int newbufsize = (int) Math.min((long) bufsize * 2, Integer.MAX_VALUE);
 
         char[] newbuffer = new char[newbufsize];


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

Reply via email to