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 80bf25d97 Remove redundant length check in isBlank (#1516)
80bf25d97 is described below
commit 80bf25d97f3dfa58a9af3cf6534b083217de7c46
Author: David Du <[email protected]>
AuthorDate: Sun Dec 7 20:01:13 2025 +0800
Remove redundant length check in isBlank (#1516)
---
src/main/java/org/apache/commons/lang3/StringUtils.java | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java
b/src/main/java/org/apache/commons/lang3/StringUtils.java
index cfe639dad..b12e481dc 100644
--- a/src/main/java/org/apache/commons/lang3/StringUtils.java
+++ b/src/main/java/org/apache/commons/lang3/StringUtils.java
@@ -3506,9 +3506,6 @@ public static boolean isAsciiPrintable(final CharSequence
cs) {
*/
public static boolean isBlank(final CharSequence cs) {
final int strLen = length(cs);
- if (strLen == 0) {
- return true;
- }
for (int i = 0; i < strLen; i++) {
if (!Character.isWhitespace(cs.charAt(i))) {
return false;