ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mrisal...@apache.org
Subject svn commit: r1078204 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/GenericMapValues.java
Date Fri, 04 Mar 2011 23:12:45 GMT
Author: mrisaliti
Date: Fri Mar  4 23:12:45 2011
New Revision: 1078204

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

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

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/GenericMapValues.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/GenericMapValues.java?rev=1078204&r1=1078203&r2=1078204&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/GenericMapValues.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/GenericMapValues.java Fri
Mar  4 23:12:45 2011
@@ -41,9 +41,9 @@ public abstract class GenericMapValues<K
 
     @Override
     public boolean equals(Object o) {
-        if (!(o instanceof Collection)) return false;
-        if (o instanceof List || o instanceof Set) return false;
-        Collection other = (Collection) o;
+        if (!(o instanceof Collection<?>)) return false;
+        if (o instanceof List<?> || o instanceof Set<?>) return false;
+        Collection<?> other = (Collection<?>) o;
         if (source.size() != other.size()) return false;
         Iterator<V> it = iterator(false);
         while (it.hasNext()) {



Mime
View raw message