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

StringUtils#startsWithAny has error in Javadoc

    XMLWordPrintableJSON

Details

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

    Description

      startsWithAny says in its javaDoc:

      /** 
      @return {@code true} if the CharSequence starts with any of the the prefixes, case insensitive, or both {@code null} 
      **/
      

      but uses startsWith(final CharSequence str, final CharSequence prefix) which is case sensitive.

      Either the JavaDoc of startsWithAny method should be changed or startsWithIgnoreCase() or startsWith(CharSequence,CharSequence,boolean) should be used.

      Attachments

        Activity

          People

            Unassigned Unassigned
            j4nu5 Matthias Niehoff
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: