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/03 23:21:31 UTC
svn commit: r1076841 -
/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/sql/EntityConditionPlanner.java
Author: mrisaliti
Date: Thu Mar 3 22:21:31 2011
New Revision: 1076841
URL: http://svn.apache.org/viewvc?rev=1076841&view=rev
Log:
Remove some warning in EntityConditionPlanner (OFBIZ-4102)
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/sql/EntityConditionPlanner.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/sql/EntityConditionPlanner.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/sql/EntityConditionPlanner.java?rev=1076841&r1=1076840&r2=1076841&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/sql/EntityConditionPlanner.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/sql/EntityConditionPlanner.java Thu Mar 3 22:21:31 2011
@@ -65,16 +65,16 @@ public class EntityConditionPlanner impl
}
private static Object buildValue(Object value, Map<String, ? extends Object> params) throws ParameterizedConditionException {
- if (value instanceof NumberValue) {
- return ((NumberValue) value).getNumber();
+ if (value instanceof NumberValue<?>) {
+ return ((NumberValue<?>) value).getNumber();
} else if (value instanceof StringValue) {
return ((StringValue) value).getString();
} else if (value instanceof FieldValue) {
FieldValue fv = (FieldValue) value;
return EntityFieldValue.makeFieldValue(fv.getFieldName(), fv.getTableName(), null, null);
- } else if (value instanceof List) {
+ } else if (value instanceof List<?>) {
List<Object> values = FastList.newInstance();
- for (Object sqlValue: (List) value) {
+ for (Object sqlValue: (List<?>) value) {
values.add(buildValue(sqlValue, params));
}
return values;