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-lang.git
The following commit(s) were added to refs/heads/master by this push:
new 667b67a1c Better exception message
667b67a1c is described below
commit 667b67a1c4e2521a28deee0b673ec4a79a4d993d
Author: Gary Gregory <[email protected]>
AuthorDate: Sun May 24 10:46:24 2026 -0400
Better exception message
---
src/main/java/org/apache/commons/lang3/text/StrBuilder.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
b/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
index a72c22745..acdf4abf7 100644
--- a/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
+++ b/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
@@ -3063,7 +3063,7 @@ protected int validateRange(final int startIndex, int
endIndex) {
endIndex = size;
}
if (startIndex > endIndex) {
- throw new StringIndexOutOfBoundsException("end < start");
+ throw new StringIndexOutOfBoundsException("startIndex > endIndex");
}
return endIndex;
}