Skip to content

Remove redundant length check in StringUtils.isBlank(CharSequence)#1516

Merged
garydgregory merged 1 commit intoapache:masterfrom
yuanchaodu:StringUtils-isBlank
Dec 7, 2025
Merged

Remove redundant length check in StringUtils.isBlank(CharSequence)#1516
garydgregory merged 1 commit intoapache:masterfrom
yuanchaodu:StringUtils-isBlank

Conversation

@yuanchaodu
Copy link
Copy Markdown
Contributor

No description provided.

@garydgregory
Copy link
Copy Markdown
Member

Hello @yuanchaodu
This indeed looks like a redundant check, and a case where the trade-off with clarity is not worth it. Merging.

@garydgregory garydgregory merged commit 80bf25d into apache:master Dec 7, 2025
29 of 36 checks passed
@garydgregory garydgregory changed the title Remove redundant length check in isBlank Remove redundant length check in StringUtils.isBlank(CharSequence) Dec 7, 2025
@yuanchaodu yuanchaodu deleted the StringUtils-isBlank branch December 7, 2025 12:18
Trinogin pushed a commit to Trinogin/commons-lang that referenced this pull request Dec 12, 2025
Trinogin pushed a commit to Trinogin/commons-lang that referenced this pull request Dec 12, 2025
Trinogin pushed a commit to Trinogin/commons-lang that referenced this pull request Dec 13, 2025
Trinogin pushed a commit to Trinogin/commons-lang that referenced this pull request Dec 13, 2025
Trinogin pushed a commit to Trinogin/commons-lang that referenced this pull request Dec 13, 2025
Trinogin pushed a commit to Trinogin/commons-lang that referenced this pull request Dec 13, 2025
Trinogin pushed a commit to Trinogin/commons-lang that referenced this pull request Dec 14, 2025
Trinogin pushed a commit to Trinogin/commons-lang that referenced this pull request Dec 14, 2025
Trinogin pushed a commit to Trinogin/commons-lang that referenced this pull request Dec 14, 2025
Trinogin pushed a commit to Trinogin/commons-lang that referenced this pull request Dec 14, 2025
Trinogin pushed a commit to Trinogin/commons-lang that referenced this pull request Dec 14, 2025
Trinogin pushed a commit to Trinogin/commons-lang that referenced this pull request Dec 14, 2025
Trinogin pushed a commit to Trinogin/commons-lang that referenced this pull request Dec 14, 2025
Trinogin pushed a commit to Trinogin/commons-lang that referenced this pull request Dec 14, 2025
Trinogin pushed a commit to Trinogin/commons-lang that referenced this pull request Dec 14, 2025
Trinogin pushed a commit to Trinogin/commons-lang that referenced this pull request Dec 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants