Author: mrisaliti
Date: Tue Feb 8 22:12:30 2011
New Revision: 1068610
URL:
http://svn.apache.org/viewvc?rev=1068610&view=revLog:
Remove compilation warnings in PeriodWorker (OFBIZ-4102)
Modified:
ofbiz/trunk/framework/common/src/org/ofbiz/common/period/PeriodWorker.java
Modified: ofbiz/trunk/framework/common/src/org/ofbiz/common/period/PeriodWorker.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/src/org/ofbiz/common/period/PeriodWorker.java?rev=1068610&r1=1068609&r2=1068610&view=diff==============================================================================
--- ofbiz/trunk/framework/common/src/org/ofbiz/common/period/PeriodWorker.java (original)
+++ ofbiz/trunk/framework/common/src/org/ofbiz/common/period/PeriodWorker.java Tue Feb 8 22:12:30 2011
@@ -26,6 +26,7 @@ import org.ofbiz.base.util.UtilDateTime;
import org.ofbiz.entity.GenericValue;
import org.ofbiz.entity.condition.EntityCondition;
import org.ofbiz.entity.condition.EntityConditionList;
+import org.ofbiz.entity.condition.EntityExpr;
import org.ofbiz.entity.condition.EntityOperator;
public class PeriodWorker {
@@ -46,7 +47,7 @@ public class PeriodWorker {
thruDate = UtilDateTime.toTimestamp(timePeriod.getDate("thruDate"));
}
- EntityConditionList betweenCondition = EntityCondition.makeCondition(
+ EntityConditionList<EntityExpr> betweenCondition = EntityCondition.makeCondition(
EntityCondition.makeCondition(fieldName, EntityOperator.GREATER_THAN, fromDate),
EntityCondition.makeCondition(fieldName, EntityOperator.LESS_THAN_EQUAL_TO, thruDate));
return EntityCondition.makeCondition(EntityCondition.makeCondition(fieldName, EntityOperator.NOT_EQUAL, null), betweenCondition);