alhudz commented on code in PR #1728:
URL: https://github.com/apache/commons-lang/pull/1728#discussion_r3475565950
##########
src/main/java/org/apache/commons/lang3/text/WordUtils.java:
##########
@@ -297,6 +298,25 @@ private static boolean isDelimiter(final char ch, final
char[] delimiters) {
return delimiters == null ? Character.isWhitespace(ch) :
ArrayUtils.contains(delimiters, ch);
}
+ /**
+ * Tests if the code point is a delimiter.
Review Comment:
Good catch. Updated the Javadoc to note that a `null` `delimiters` treats
any whitespace code point (per `Character.isWhitespace(int)`) as a delimiter,
same as the `char` overload.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]