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

Rename MultiMap.remove(K, V) to avoid clashes with newly introduced default methods in Java 8

    Details

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

      Description

      Java 8 will introduce new default methods for the Map interface which clash with the existing method "V remove(K key, V value)" in our MultiMap interface.

      To avoid future problems rename the method to a more specific version and change the return type to be more logical. Brief discussion on the ml favored either:

      • boolean removeMapping(K key, V value)
      • boolean removeValue(K key, V value)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tn Thomas Neidhart
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: