You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mr...@apache.org on 2011/03/05 00:13:49 UTC

svn commit: r1078206 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/GenericMapEntrySet.java

Author: mrisaliti
Date: Fri Mar  4 23:13:49 2011
New Revision: 1078206

URL: http://svn.apache.org/viewvc?rev=1078206&view=rev
Log:
Remove some warning in GenericMapEntrySet (OFBIZ-4102)

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/GenericMapEntrySet.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/GenericMapEntrySet.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/GenericMapEntrySet.java?rev=1078206&r1=1078205&r2=1078206&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/GenericMapEntrySet.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/GenericMapEntrySet.java Fri Mar  4 23:13:49 2011
@@ -27,8 +27,8 @@ public abstract class GenericMapEntrySet
 
     public boolean contains(Object item) {
         if (item == null) return false;
-        if (!(item instanceof Map.Entry)) return false;
-        Map.Entry other = (Map.Entry) item;
+        if (!(item instanceof Map.Entry<?, ?>)) return false;
+        Map.Entry<?, ?> other = (Map.Entry<?, ?>) item;
         return contains(other.getKey(), other.getValue());
     }
 
@@ -36,8 +36,8 @@ public abstract class GenericMapEntrySet
 
     public boolean remove(Object item) {
         if (item == null) return false;
-        if (!(item instanceof Map.Entry)) return false;
-        Map.Entry other = (Map.Entry) item;
+        if (!(item instanceof Map.Entry<?, ?>)) return false;
+        Map.Entry<?, ?> other = (Map.Entry<?, ?>) item;
         Object key = other.getKey();
         if (!source.containsKey(key)) return false;
         source.remove(key);