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

Incorrect Javadoc StringUtils.containsAny(CharSequence, CharSequence...)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.4
    • 3.5
    • lang.*
    • None

    Description

      Javadoc for boolean org.apache.commons.lang3.StringUtils.containsAny(CharSequence cs, CharSequence... searchCharSequences) says:

      StringUtils.containsAny("abcd", "ab", "cd") = false

      which is not true. It should be:

      StringUtils.containsAny("abcd", "ab", "cd") = true

      Attachments

        1. LANG-1191.diff
          2 kB
          Brent Worden

        Activity

          People

            ggregory Gary D. Gregory
            qed qed
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: