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

Example StringUtils.indexOfAnyBut("zzabyycdxx", '') = 0 incorrect

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 3.0
    • Component/s: lang.*
    • Labels:
      None

      Description

      I recognized the following example in class StringUtils:

            StringUtils.indexOfAnyBut("zzabyycdxx", '') = 0
      

      According to Niall Pembertons answer on the user mailing list (Oct, 27th 2010) I should report an issue on this.
      He suggested the following replacement:

            StringUtils.indexOfAnyBut("zzabyycdxx", "")   = -1
      

      Regards,
      Dirk

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dstarke@starke-net.de Dirk Starke
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: