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

Typo in JavaDoc for lastIndexOf

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.8
    • None
    • None

    Description

      Typo in Java doc for lastIndexOf.

      You could check on following page:

      https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#lastIndexOf-java.lang.CharSequence-java.lang.CharSequence-int-

      In example of execution two last row have same arguments but result differ:

      StringUtils.lastIndexOf("aabaabaa", "ba", 2) = -1

      StringUtils.lastIndexOf("aabaabaa", "ba", 2) = 2

       

      Thanks

       

      Attachments

        Activity

          People

            pascalschumacher Pascal Schumacher
            amaemdov Alex Mamedov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: