[
https://issues.apache.org/jira/browse/TEXT-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16047195#comment-16047195
]
Arun Vinud commented on TEXT-88:
---------------------------------
What if I don't like to pass an explicit null as input and pass an empty
delimiter array as input instead ? I would expect the same output as passing a
null since "I have not provided any delimiters" but the current implementation
gives a different output . I do agree that space is the most common delimiter
and we should definitely provide support for that but my thinking is can we
provide support to that in a more straight forward way ? As a consumer I feel I
shouldn't have any surprise imho .
> WordUtils.capitalizeFully behaves in a counterintuitive manner with empty
> delimiter array.
> ------------------------------------------------------------------------------------------
>
> Key: TEXT-88
> URL: https://issues.apache.org/jira/browse/TEXT-88
> Project: Commons Text
> Issue Type: Bug
> Reporter: Rob Tompkins
>
> As discussed in TEXT-85, it seems that
> {code:java}
> WordUtils.capitalizeFully("i am fine", new char[]{}) // --> i am fine
> {code}
> Both Sebb and Arun think that this is odd and that the letter "i" should have
> been capitalized resulting in the output {{I am fine}}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)