Author: mrisaliti
Date: Fri Mar 4 23:14:51 2011
New Revision: 1078207
URL:
http://svn.apache.org/viewvc?rev=1078207&view=revLog:
Remove some warning in ReadOnlyMapEntry (OFBIZ-4102)
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/ReadOnlyMapEntry.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/ReadOnlyMapEntry.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/ReadOnlyMapEntry.java?rev=1078207&r1=1078206&r2=1078207&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/ReadOnlyMapEntry.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/ReadOnlyMapEntry.java Fri Mar 4 23:14:51 2011
@@ -48,9 +48,9 @@ public class ReadOnlyMapEntry<K, V> impl
@Override
public boolean equals(Object o) {
- if (!(o instanceof Map.Entry)) return false;
+ if (!(o instanceof Map.Entry<?, ?>)) return false;
if (this == o) return true;
- Map.Entry other = (Map.Entry) o;
+ Map.Entry<?, ?> other = (Map.Entry<?, ?>) o;
return UtilObject.equalsHelper(getKey(), other.getKey()) && UtilObject.equalsHelper(getValue(), other.getValue());
}