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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.5
    • 3.0
    • lang.*
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: