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

StringUtils#startsWithAny has error in Javadoc

    Details

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

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

              Dates

              • Created:
                Updated:
                Resolved: