You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Amey Jadiye (JIRA)" <ji...@apache.org> on 2017/06/14 09:27:00 UTC
[jira] [Comment Edited] (TEXT-88) WordUtils.capitalizeFully behaves
in a counterintuitive manner with empty delimiter array.
[ https://issues.apache.org/jira/browse/TEXT-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16048828#comment-16048828 ]
Amey Jadiye edited comment on TEXT-88 at 6/14/17 9:26 AM:
----------------------------------------------------------
[~erans] the behavior you are looking as bug , I see it as feature ;-), IMO rather throwing NPE we should handle situation and reply appropriately and that's how many method works in Commons Text , mentioning behavior in Javadoc of each method is good enough to tell users how it will work.
was (Author: ameyjadiye):
[~gilles] the behavior you are looking as bug , I see it as feature ;-), IMO rather throwing NPE we should handle situation and reply appropriately and that's how many method works in Commons Text , mentioning behavior in Javadoc of each method is good enough to tell users how it will work.
> 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)