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 754c38d279 Review "Follow the EL specification for substream with a
negative start"
754c38d279 is described below
commit 754c38d279375bef94422629194feddc9e808ef5
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Nov 5 16:43:44 2026 +0000
Review "Follow the EL specification for substream with a negative start"
Update Javadoc
---
java/org/apache/el/stream/Stream.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/java/org/apache/el/stream/Stream.java
b/java/org/apache/el/stream/Stream.java
index d789101640..425567154c 100644
--- a/java/org/apache/el/stream/Stream.java
+++ b/java/org/apache/el/stream/Stream.java
@@ -314,7 +314,9 @@ public class Stream {
* is less than or equal to zero.
*
* @param start the number of elements to skip
- * @param end the end position (exclusive)
+ * @param end used to calculate the number of elements to include, which
is {@code end - start}. This is the
+ * exclusive end position only if {@code start} is greater
than or equal to zero. If
+ * {@code end - start} is less than or equal to zero, no
elements are included.
* @return the new substream
*/
public Stream substream(final Number start, final Number end) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]