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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.1
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: