Github user PascalSchumacher commented on the pull request:
https://github.com/apache/commons-lang/pull/113#issuecomment-172357021
@hen Thanks again for the in-depth review.
Part of the is `isEmpty()` is necessary, because `normalizeSpace` has to
return `null` for `null` parameters according to javadoc `@return the modified
string with whitespace normalized, {@code null} if null String input`
I have updated the pull request and replaced the is `isEmpty()` check by
`str == null`.
I have also updated javadoc to reflect that non-breaking space is
normalized.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---