Author: mrisaliti
Date: Fri Mar 4 23:13:49 2011
New Revision: 1078206
URL:
http://svn.apache.org/viewvc?rev=1078206&view=revLog:
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);