Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.product.supplier. (OFBIZ-9787) Thanks Julian Leichert for reporting and providing the patch. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1817646 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+2
-2
@@ -55,7 +55,7 @@ public class SupplierProductServices {
|
||||
* filtered by date and optionally by partyId, ordered with lowest price first
|
||||
*/
|
||||
public static Map<String, Object> getSuppliersForProduct(DispatchContext dctx, Map<String, ? extends Object> context) {
|
||||
Map<String, Object> results = new HashMap<String, Object>();
|
||||
Map<String, Object> 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<String, Object> convertFeaturesForSupplier(DispatchContext dctx, Map<String, ? extends Object> context) {
|
||||
Map<String, Object> results = new HashMap<String, Object>();
|
||||
Map<String, Object> results;
|
||||
String partyId = (String) context.get("partyId");
|
||||
Collection<GenericValue> features = UtilGenerics.checkList(context.get("productFeatures"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user