[ http://issues.apache.org/jira/browse/LANG-277?page=all ]
Henri Yandell resolved LANG-277.
--------------------------------
Fix Version/s: 2.2
Resolution: Fixed
> Javadoc errors on StringUtils.splitPreserveAllTokens(String, char)
> ------------------------------------------------------------------
>
> Key: LANG-277
> URL: http://issues.apache.org/jira/browse/LANG-277
> Project: Commons Lang
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Ken Geis
> Priority: Minor
> Fix For: 2.2
>
>
> In the Javadoc for StringUtils.splitPreserveAllTokens(String, char) there are
> a couple of mistakes. I didn't check for similar mistakes in the similar
> functions with different signatures.
> StringUtils.splitPreserveAllTokens("a..b.c", '.') = ["a", "b", "c"]
> should read
> StringUtils.splitPreserveAllTokens("a..b.c", '.') = ["a", "", "b", "c"]
> These two lines have the same input giving different outputs. I think that
> the input string on the second call should be "a b c ".
> StringUtils.splitPreserveAllTokens("a b c ", ' ') = ["a", "b", "c", ""]
> StringUtils.splitPreserveAllTokens("a b c ", ' ') = ["a", "b", "c", "", ""]
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]