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

StringUtils.equalsIgnoreCase doesn't check string reference equality

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1
    • 3.2
    • lang.*
    • None

    Description

      This looks like a regression from .lang versions prior to 3. If the 2 given CharSequences are strings (and both not null) you should check reference equality before delegating to regionMatches()

      Attachments

        Activity

          People

            Unassigned Unassigned
            pnepywoda Paul Nepywoda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: