ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mrisal...@apache.org
Subject svn commit: r1076851 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityUtil.java
Date Thu, 03 Mar 2011 22:31:42 GMT
Author: mrisaliti
Date: Thu Mar  3 22:31:42 2011
New Revision: 1076851

URL: http://svn.apache.org/viewvc?rev=1076851&view=rev
Log:
Remove a warning in EntityUtil (OFBIZ-4102)

Modified:
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityUtil.java

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityUtil.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityUtil.java?rev=1076851&r1=1076850&r2=1076851&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityUtil.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityUtil.java Thu Mar  3 22:31:42
2011
@@ -60,7 +60,7 @@ public class EntityUtil {
                 if (!(args[i] instanceof String)) throw new IllegalArgumentException("Key("
+ i + "), with value(" + args[i] + ") is not a String.");
                 String key = (String) args[i];
                 i++;
-                if (!(args[i] instanceof Comparable)) throw new IllegalArgumentException("Value("
+ i + "), with value(" + args[i] + ") does not implement Comparable.");
+                if (!(args[i] instanceof Comparable<?>)) throw new IllegalArgumentException("Value("
+ i + "), with value(" + args[i] + ") does not implement Comparable.");
                 if (!(args[i] instanceof Serializable)) throw new IllegalArgumentException("Value("
+ i + "), with value(" + args[i] + ") does not implement Serializable.");
                 fields.put(key, args[i]);
                 i++;



Mime
View raw message