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

MultiValueMap put and putAll do not return the correct values

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.2.2, 4.0-alpha1, 4.0
    • Component/s: Map
    • Labels:
      None

      Description

      MultiValueMap put and putAll do not return the correct values.

      putAll(Object, Collection) should return true if the map is changed. But if the key is new then this behaviour fails.

      put(Object, Object) should return the added value if the map is changed. But if the key is new then this behaviour fails.

      This was hidden because the test case referred to MultiHashMap and not MultValueMap.

        Attachments

          Activity

            People

            • Assignee:
              scolebourne Stephen Colebourne
              Reporter:
              scolebourne Stephen Colebourne
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: