Author: mrisaliti
Date: Fri Mar 4 23:12:45 2011
New Revision: 1078204
URL:
http://svn.apache.org/viewvc?rev=1078204&view=revLog:
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()) {