commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <>
Subject [jira] Closed: (LANG-418) Javadoc incorrect for StringUtils.endsWithIgnoreCase
Date Tue, 25 Mar 2008 07:37:25 GMT


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/
Sending        src/test/org/apache/commons/lang/
Transmitting file data ..
Committed revision 640727.

> Javadoc incorrect for StringUtils.endsWithIgnoreCase
> ----------------------------------------------------
>                 Key: LANG-418
>                 URL:
>             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.

View raw message