commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ken Geis (JIRA)" <j...@apache.org>
Subject [jira] Created: (LANG-277) Javadoc errors on StringUtils.splitPreserveAllTokens(String, char)
Date Wed, 30 Aug 2006 06:23:22 GMT
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


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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message