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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.5
    • Component/s: lang.*
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: