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:12:45 UTC
svn commit: r1078204 -
/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/collections/GenericMapValues.java
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()) {