Author: sebb
Date: Tue Mar 13 11:03:22 2012
New Revision: 1300072

URL: http://svn.apache.org/viewvc?rev=1300072&view=rev
Log:
Fix bug detected by Eclipse compiler

Modified:
    
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/MultiMap.java

Modified: 
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/MultiMap.java
URL: 
http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/MultiMap.java?rev=1300072&r1=1300071&r2=1300072&view=diff
==============================================================================
--- 
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/MultiMap.java
 (original)
+++ 
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/MultiMap.java
 Tue Mar 13 11:03:22 2012
@@ -97,7 +97,7 @@ public interface MultiMap<K, V> extends 
      * @throws ClassCastException if the key is of an invalid type
      * @throws NullPointerException if the key is null and null keys are 
invalid
      */
-    Object get(K key);
+    Object get(Object key); // Cannot use get(K key) as that does not properly 
implement Map#get
 
     /**
      * Checks whether the map contains the value specified.
@@ -143,7 +143,7 @@ public interface MultiMap<K, V> extends 
      * @throws ClassCastException if the key is of an invalid type
      * @throws NullPointerException if the key is null and null keys are 
invalid
      */
-    Object remove(K key);
+    Object remove(Object key); // Cannot use remove(K key) as that does not 
properly implement Map#remove
 
     /**
      * Gets a collection containing all the values in the map.


Reply via email to