diff --git a/applications/product/src/main/java/org/apache/ofbiz/product/store/ProductStoreEvents.java b/applications/product/src/main/java/org/apache/ofbiz/product/store/ProductStoreEvents.java index b76bf3d40a..5ce776a17a 100644 --- a/applications/product/src/main/java/org/apache/ofbiz/product/store/ProductStoreEvents.java +++ b/applications/product/src/main/java/org/apache/ofbiz/product/store/ProductStoreEvents.java @@ -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 josonMap = new HashMap<>(); List 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 dataMap = new HashMap<>(); + Map 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 attrMap = new HashMap<>(); attrMap.put("parentGroupId", productStoreGroupId); josonMap.put("attr",attrMap); josonMap.put("sequenceNum",child.get("sequenceNum"));