commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geoffrey Longo (JIRA)" <>
Subject [jira] Created: (LANG-418) Javadoc incorrect for StringUtils.endsWithIgnoreCase
Date Mon, 24 Mar 2008 19:25:29 GMT
Javadoc incorrect for StringUtils.endsWithIgnoreCase

                 Key: LANG-418
             Project: Commons Lang
          Issue Type: Bug
    Affects Versions: 2.4
            Reporter: Geoffrey Longo
            Priority: Minor

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