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

    XMLWordPrintableJSON

Details

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

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

            Dates

              Created:
              Updated:
              Resolved: