diff --git a/applications/product/src/main/java/org/apache/ofbiz/product/supplier/SupplierProductServices.java b/applications/product/src/main/java/org/apache/ofbiz/product/supplier/SupplierProductServices.java index 32288cdf7c..991ea8a08a 100644 --- a/applications/product/src/main/java/org/apache/ofbiz/product/supplier/SupplierProductServices.java +++ b/applications/product/src/main/java/org/apache/ofbiz/product/supplier/SupplierProductServices.java @@ -55,7 +55,7 @@ public class SupplierProductServices { * filtered by date and optionally by partyId, ordered with lowest price first */ public static Map getSuppliersForProduct(DispatchContext dctx, Map context) { - Map results = new HashMap(); + Map results; Delegator delegator = dctx.getDelegator(); GenericValue product = null; @@ -127,7 +127,7 @@ public class SupplierProductServices { * SupplierProduct entity for that supplier party and feature, and return it as convertedProductFeatures */ public static Map convertFeaturesForSupplier(DispatchContext dctx, Map context) { - Map results = new HashMap(); + Map results; String partyId = (String) context.get("partyId"); Collection features = UtilGenerics.checkList(context.get("productFeatures"));