Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-521

Typo in MultiMapKey's isEqualKey(entry, key1, key2)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1
    • Component/s: None
    • Labels:
      None

      Description

      I believe there is a typo line 252 in MultiKeyMap.
      return
      multi.size() == 2 &&
      (key1 == multi.getKey(0) || key1 != null && key1.equals(multi.getKey(0))) &&
      (key2 == multi.getKey(1) || key1 != null && key2.equals(multi.getKey(1)));

      should be:
      return
      multi.size() == 2 &&
      (key1 == multi.getKey(0) || key1 != null && key1.equals(multi.getKey(0))) &&
      (key2 == multi.getKey(1) || key2 != null && key2.equals(multi.getKey(1)));

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Maxime Nay Maxime Nay
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: