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

StringUtils.equalsIgnoreCase doesn't check string reference equality

    XMLWordPrintableJSON

    Details

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

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

              Dates

              • Created:
                Updated:
                Resolved: