commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LANG-581) a API document bug of org.apache.commons.lang.StringUtils
Date Thu, 14 Jan 2010 14:46:54 GMT

    [ https://issues.apache.org/jira/browse/LANG-581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12800215#action_12800215
] 

Sebb commented on LANG-581:
---------------------------

Yes, the example is wrong, in that the trailing "." should not be there.

The example should probably be something more like:

StringUtils.removeEndIgnoreCase("www.domain.com", ".COM.") = "www.domain.com"

and similarly for the other examples.



> a API document bug of org.apache.commons.lang.StringUtils
> ---------------------------------------------------------
>
>                 Key: LANG-581
>                 URL: https://issues.apache.org/jira/browse/LANG-581
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 2.4
>         Environment: Online document
>            Reporter: wangcee
>            Priority: Trivial
>
> the org.apache.commons.lang.StringUtils online document 
> http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringUtils.html#removeEndIgnoreCase%28java.lang.String,%20java.lang.String%29
> at removeEndIgnoreCase()  description, there is one line 
> StringUtils.removeEnd("www.domain.com", ".com.")  = "www.domain.com."
> it should be 
> StringUtils.removeEnd("www.domain.com", ".com.")  = "www.domain.com"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message