Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-418

Javadoc incorrect for StringUtils.endsWithIgnoreCase

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4
    • 3.0
    • lang.*
    • None

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            gmlongo Geoffrey Longo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: