Author: jleroux
Date: Tue Nov 3 08:05:40 2009
New Revision: 832331
URL:
http://svn.apache.org/viewvc?rev=832331&view=revLog:
A patch from Marc Morin "Resolve java warnings exposed in Eclipse : framework - bi" (
https://issues.apache.org/jira/browse/OFBIZ-3118) - OFBIZ-3103
Modified:
ofbiz/trunk/framework/bi/src/org/ofbiz/bi/util/DimensionServices.java
Modified: ofbiz/trunk/framework/bi/src/org/ofbiz/bi/util/DimensionServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/bi/src/org/ofbiz/bi/util/DimensionServices.java?rev=832331&r1=832330&r2=832331&view=diff==============================================================================
--- ofbiz/trunk/framework/bi/src/org/ofbiz/bi/util/DimensionServices.java (original)
+++ ofbiz/trunk/framework/bi/src/org/ofbiz/bi/util/DimensionServices.java Tue Nov 3 08:05:40 2009
@@ -18,34 +18,19 @@
*/
package org.ofbiz.bi.util;
-import java.sql.Timestamp;
-import java.text.SimpleDateFormat;
-import com.ibm.icu.util.Calendar;
-import java.util.Date;
-import java.util.Iterator;
import java.util.List;
-import java.util.Locale;
import java.util.Map;
-
-import javolution.util.FastList;
import javolution.util.FastMap;
-import org.ofbiz.base.util.Debug;
-import org.ofbiz.base.util.GeneralException;
-import org.ofbiz.base.util.UtilDateTime;
import org.ofbiz.base.util.UtilGenerics;
import org.ofbiz.base.util.UtilMisc;
-import org.ofbiz.base.util.UtilProperties;
import org.ofbiz.base.util.UtilValidate;
import org.ofbiz.entity.Delegator;
-import org.ofbiz.entity.util.EntityUtil;
-
import org.ofbiz.entity.GenericEntityException;
import org.ofbiz.entity.GenericValue;
+import org.ofbiz.entity.util.EntityUtil;
import org.ofbiz.service.DispatchContext;
-import org.ofbiz.service.GenericServiceException;
-import org.ofbiz.service.LocalDispatcher;
import org.ofbiz.service.ServiceUtil;
public class DimensionServices {
@@ -55,8 +40,6 @@
public static Map<String, Object> getDimensionIdFromNaturalKey(DispatchContext ctx, Map<String, ? extends Object> context) {
Map<String, Object> resultMap = ServiceUtil.returnSuccess();
Delegator delegator = ctx.getDelegator();
- LocalDispatcher dispatcher = ctx.getDispatcher();
-
String dimensionEntityName = (String) context.get("dimensionEntityName");
Map<String, ? extends Object> naturalKeyFields = UtilGenerics.cast(context.get("naturalKeyFields"));
GenericValue lastDimensionValue = null;
@@ -74,8 +57,6 @@
public static Map<String, Object> storeGenericDimension(DispatchContext ctx, Map<String, ? extends Object> context) {
Delegator delegator = ctx.getDelegator();
- LocalDispatcher dispatcher = ctx.getDispatcher();
-
GenericValue dimensionValue = (GenericValue) context.get("dimensionValue");
List<String> naturalKeyFields = UtilGenerics.checkList(context.get("naturalKeyFields"), String.class);
String updateMode = (String) context.get("updateMode");