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 99760ff499 Review "Follow the EL specification for substream with a 
negative start"
99760ff499 is described below

commit 99760ff499c720333d080da7ac108151bdd0aa6d
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 ac9973b11d..0f9089f016 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]

Reply via email to