Author: mbrohl Date: Sat Dec 16 11:52:32 2017 New Revision: 1818387 URL: http://svn.apache.org/viewvc?rev=1818387&view=rev Log: Improved: General refactoring and code improvements, package org.apache.ofbiz.content.output. (OFBIZ-10078)
Thanks Julian Leichert for reporting and providing the patch. Modified: ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/output/OutputServices.java Modified: ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/output/OutputServices.java URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/output/OutputServices.java?rev=1818387&r1=1818386&r2=1818387&view=diff ============================================================================== --- ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/output/OutputServices.java (original) +++ ofbiz/ofbiz-framework/trunk/applications/content/src/main/java/org/apache/ofbiz/content/output/OutputServices.java Sat Dec 16 11:52:32 2017 @@ -95,7 +95,7 @@ public class OutputServices { String printerContentType = (String) serviceContext.remove("printerContentType"); if (UtilValidate.isEmpty(screenContext)) { - screenContext = new HashMap<String, Object>(); + screenContext = new HashMap<>(); } screenContext.put("locale", locale); if (UtilValidate.isEmpty(contentType)) { @@ -211,7 +211,7 @@ public class OutputServices { String fileName = (String) serviceContext.remove("fileName"); if (UtilValidate.isEmpty(screenContext)) { - screenContext = new HashMap<String, Object>(); + screenContext = new HashMap<>(); } screenContext.put("locale", locale); if (UtilValidate.isEmpty(contentType)) {