Skip to content

Add javadoc examples for StringUtils.isBlank to include EM SPACE and NO-BREAK SPACE#1622

Closed
FloydDsilva wants to merge 1 commit intoapache:masterfrom
FloydDsilva:master
Closed

Add javadoc examples for StringUtils.isBlank to include EM SPACE and NO-BREAK SPACE#1622
FloydDsilva wants to merge 1 commit intoapache:masterfrom
FloydDsilva:master

Conversation

@FloydDsilva
Copy link
Copy Markdown

This PR clarifies the behavior of StringUtils.isBlank(CharSequence) with respect to Unicode whitespace.

Changes

The Javadoc for StringUtils.isBlank(CharSequence) to explicitly clarify that whitespace detection is based on Character.isWhitespace(char) and includes Unicode whitespace characters such as EM SPACE (U+2003) and NO‑BREAK SPACE (U+00A0).
No code or test changes are included; this update is documentation‑only and improves clarity around existing behavior.
image

@garydgregory
Copy link
Copy Markdown
Member

-1: This seems redundant to me with the link to Character#isWhitespace(char) in the description. If we go down this read we might as well duplicate the Javadoc for Character#isWhitespace(char) which seems unreasonable.

@FloydDsilva FloydDsilva closed this Apr 3, 2026
@FloydDsilva
Copy link
Copy Markdown
Author

-1: This seems redundant to me with the link to Character#isWhitespace(char) in the description. If we go down this read we might as well duplicate the Javadoc for Character#isWhitespace(char) which seems unreasonable.

I see your point. Thanks for your feedback.

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