You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2008/03/25 08:37:25 UTC

[jira] Closed: (LANG-418) Javadoc incorrect for StringUtils.endsWithIgnoreCase

     [ https://issues.apache.org/jira/browse/LANG-418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell closed LANG-418.
------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0

Agreed - the javadoc is quite confusing.

svn ci -m "Fixing the javadoc for endsWithIgnoreCase as per LANG-418, and adding some javadoc to test the novel javadoc examples" src

Sending        src/java/org/apache/commons/lang/StringUtils.java
Sending        src/test/org/apache/commons/lang/StringUtilsStartsEndsWithTest.java
Transmitting file data ..
Committed revision 640727.

> Javadoc incorrect for StringUtils.endsWithIgnoreCase
> ----------------------------------------------------
>
>                 Key: LANG-418
>                 URL: https://issues.apache.org/jira/browse/LANG-418
>             Project: Commons Lang
>          Issue Type: Bug
>    Affects Versions: 2.4
>            Reporter: Geoffrey Longo
>            Priority: Minor
>             Fix For: 3.0
>
>
> The javadoc for StringUtils.endsWithIgnoreCase() shows an example that appears incorrect.  It currently looks like the following:
>     StringUtils.endsWithIgnoreCase("def", "ABCDEF") = false
> I believe that should return true.
> It also appears that the examples in the javadoc have the parameters backwards, as the signature shows the second parameter as the "suffix", yet the suffix in the examples is the first parameter.  The following sample I think would be more correct:
>     StringUtils.endsWithIgnoreCase("ABCDEF", "def") = true

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