Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.common.uom. (OFBIZ-9634) Thanks Dennis Balkir for reporting and providing the patch. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811428 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -99,12 +99,12 @@ public class UomWorker {
|
||||
if (originalValue == null || uomId == null || uomIdTo == null) return null;
|
||||
if (uomId.equals(uomIdTo)) return originalValue;
|
||||
|
||||
Map<String, Object> svcInMap = new LinkedHashMap<String, Object>();
|
||||
Map<String, Object> svcInMap = new LinkedHashMap<>();
|
||||
svcInMap.put("originalValue", originalValue);
|
||||
svcInMap.put("uomId", uomId);
|
||||
svcInMap.put("uomIdTo", uomIdTo);
|
||||
|
||||
Map<String, Object> svcOutMap = new LinkedHashMap<String, Object>();
|
||||
Map<String, Object> svcOutMap;
|
||||
try {
|
||||
svcOutMap = dispatcher.runSync("convertUom", svcInMap);
|
||||
} catch (GenericServiceException ex) {
|
||||
|
||||
Reference in New Issue
Block a user