Improved: Define generic types in

(OFBIZ-10355)

Thanks Mathieu for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1834201 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Arun Patidar
2018-06-23 12:53:56 +00:00
parent 2da1409dd1
commit b346b89112
@@ -56,7 +56,7 @@ public class ProductStoreEvents {
if (UtilValidate.isNotEmpty(children)) {
for (GenericValue child : children ) {
String productStoreGroupId = child.getString("productStoreGroupId");
Map josonMap = new HashMap();
Map<String, Object> josonMap = new HashMap<>();
List<GenericValue> childList = null;
// Get the child list of chosen category
childList = EntityQuery.use(delegator).from("ProductStoreGroupRollupAndChild").where("parentGroupId", productStoreGroupId).cache(true).filterByDate().queryList();
@@ -64,8 +64,8 @@ public class ProductStoreEvents {
if (UtilValidate.isNotEmpty(childList)) {
josonMap.put("state", "closed");
}
Map dataMap = new HashMap();
Map dataAttrMap = new HashMap();
Map<String, Object> dataMap = new HashMap<>();
Map<String, String> dataAttrMap = new HashMap<>();
dataAttrMap.put("onClick", onclickFunction + "('" + productStoreGroupId + "')");
String hrefStr = "EditProductStoreGroupAndAssoc";
@@ -74,7 +74,7 @@ public class ProductStoreEvents {
dataMap.put("attr", dataAttrMap);
dataMap.put("title", child.get("productStoreGroupName") + " [" + child.get("productStoreGroupId") + "]");
josonMap.put("data", dataMap);
Map attrMap = new HashMap();
Map<String, String> attrMap = new HashMap<>();
attrMap.put("parentGroupId", productStoreGroupId);
josonMap.put("attr",attrMap);
josonMap.put("sequenceNum",child.get("sequenceNum"));