This is an automated email from the ASF dual-hosted git repository.
ggregory 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 a3a93d53a No need conditions. Never is < 0 (#962)
a3a93d53a is described below
commit a3a93d53a53c4fc418d50b5fac6dfc08f44b116a
Author: Arturo Bernal <[email protected]>
AuthorDate: Sat Oct 8 14:11:47 2022 +0200
No need conditions. Never is < 0 (#962)
---
src/main/java/org/apache/commons/lang3/CharSequenceUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/lang3/CharSequenceUtils.java
b/src/main/java/org/apache/commons/lang3/CharSequenceUtils.java
index dc7c698df..f63b4248c 100644
--- a/src/main/java/org/apache/commons/lang3/CharSequenceUtils.java
+++ b/src/main/java/org/apache/commons/lang3/CharSequenceUtils.java
@@ -170,7 +170,7 @@ public class CharSequenceUtils {
start = len1;
}
- if (start < 0 || len2 < 0 || len2 > len1) {
+ if (start < 0 || len2 > len1) {
return NOT_FOUND;
}