[ 
http://issues.apache.org/jira/browse/LANG-277?page=comments#action_12431643 ] 
            
Henri Yandell commented on LANG-277:
------------------------------------

Thanks for the report Ken.

The first issue has already been caught and fixed in SVN.

Second one now fixed (by adding another space to the end of the example).

svn ci -m "Fixed 2nd javadoc bug mentioned in #LANG-277 and added more unit 
tests to match the javadoc examples"
Sending        src/java/org/apache/commons/lang/StringUtils.java
Sending        src/test/org/apache/commons/lang/StringUtilsTest.java
Transmitting file data ..
Committed revision 438574.   

> 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]

Reply via email to