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:14:51 UTC

svn commit: r1078207 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/ReadOnlyMapEntry.java

Author: mrisaliti
Date: Fri Mar  4 23:14:51 2011
New Revision: 1078207

URL: http://svn.apache.org/viewvc?rev=1078207&view=rev
Log:
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());
     }