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

[lang] Documentation error in StringUtils.replace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.1
    • lang.*
    • None
    • Operating System: All
      Platform: Other

    • 24056

    Description

      The following example from the javadoc is incorrect.

      StringUtils.replace("aba", "a", "") = "aba"

      it should be:

      StringUtils.replace("aba", "a", "") = "b"

      Attachments

        Activity

          People

            Unassigned Unassigned
            russelldittmar@charter.net Russell Dittmar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: