Author: mrisaliti
Date: Mon Feb 28 20:58:18 2011
New Revision: 1075526
URL:
http://svn.apache.org/viewvc?rev=1075526&view=revLog:
Remove some warning in EmptyCondition (OFBIZ-4102)
Modified:
ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/conditional/EmptyCondition.java
Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/conditional/EmptyCondition.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/conditional/EmptyCondition.java?rev=1075526&r1=1075525&r2=1075526&view=diff==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/conditional/EmptyCondition.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/conditional/EmptyCondition.java Mon Feb 28 20:58:18 2011
@@ -74,13 +74,13 @@ public class EmptyCondition implements C
if (fieldStr.length() == 0) {
runSubOps = true;
}
- } else if (fieldVal instanceof Collection) {
+ } else if (fieldVal instanceof Collection<?>) {
Collection<?> fieldCol = (Collection<?>) fieldVal;
if (fieldCol.size() == 0) {
runSubOps = true;
}
- } else if (fieldVal instanceof Map) {
+ } else if (fieldVal instanceof Map<?, ?>) {
Map<?,?> fieldMap = (Map<?,?>) fieldVal;
if (fieldMap.size() == 0) {