This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new c93fc4dda8 Add note since this class is generated
c93fc4dda8 is described below
commit c93fc4dda8a4e39aa2a953851be3020de0eb7259
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 1a84886078..2f4f75e90b 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
@@ -58,10 +58,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]