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

garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-text.git


The following commit(s) were added to refs/heads/master by this push:
     new 86d5f1e7 Better exception message
86d5f1e7 is described below

commit 86d5f1e7b7994d104fb7a488a0bf8d53e1699813
Author: Gary Gregory <[email protected]>
AuthorDate: Sun May 24 10:47:38 2026 -0400

    Better exception message
---
 src/main/java/org/apache/commons/text/StrBuilder.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/text/StrBuilder.java 
b/src/main/java/org/apache/commons/text/StrBuilder.java
index f29b1215..02b18cf2 100644
--- a/src/main/java/org/apache/commons/text/StrBuilder.java
+++ b/src/main/java/org/apache/commons/text/StrBuilder.java
@@ -2952,7 +2952,7 @@ public class StrBuilder implements CharSequence, 
Appendable, Serializable, Build
             endIndex = size;
         }
         if (startIndex > endIndex) {
-            throw new StringIndexOutOfBoundsException("end < start");
+            throw new StringIndexOutOfBoundsException("startIndex > endIndex");
         }
         return endIndex;
     }

Reply via email to