diff --git a/src/main/java/org/apache/commons/collections4/multimap/AbstractMultiValuedMap.java b/src/main/java/org/apache/commons/collections4/multimap/AbstractMultiValuedMap.java index 6c7da3c60..2a152c90b 100644 --- a/src/main/java/org/apache/commons/collections4/multimap/AbstractMultiValuedMap.java +++ b/src/main/java/org/apache/commons/collections4/multimap/AbstractMultiValuedMap.java @@ -600,42 +600,6 @@ public class AbstractMultiValuedMap implements MultiValuedMap, Seria return col.toArray(a); } - @Override - public boolean equals(Object other) { - final Collection col = getMapping(); - if (col == null) { - return CollectionUtils.EMPTY_COLLECTION.equals(other); - } - if (other == null) { - return false; - } - if(!(other instanceof Collection)){ - return false; - } - Collection otherCol = (Collection) other; - if (CollectionUtils.isEqualCollection(col, otherCol) == false) { - return false; - } - return true; - } - - @Override - public int hashCode() { - final Collection col = getMapping(); - if (col == null) { - return CollectionUtils.EMPTY_COLLECTION.hashCode(); - } - int h = 0; - Iterator it = col.iterator(); - while (it.hasNext()) { - V val = it.next(); - if (val != null) { - h += val.hashCode(); - } - } - return h; - } - @Override public String toString() { final Collection col = getMapping();