details:   https://code.openbravo.com/erp/devel/pi/rev/93f6391178a1
changeset: 30971:93f6391178a1
user:      Carlos Aristu <carlos.aristu <at> openbravo.com>
date:      Fri Dec 16 09:12:21 2016 +0100
summary:   related to issue 34725: define maps using Map class

diffstat:

 
modules/org.openbravo.client.application/src/org/openbravo/client/application/report/BaseReportActionHandler.java
 |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 3d4b4857dc35 -r 93f6391178a1 
modules/org.openbravo.client.application/src/org/openbravo/client/application/report/BaseReportActionHandler.java
--- 
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/report/BaseReportActionHandler.java
 Fri Dec 16 08:38:35 2016 +0100
+++ 
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/report/BaseReportActionHandler.java
 Fri Dec 16 09:12:21 2016 +0100
@@ -326,8 +326,8 @@
     }
     final String jrTemplatePath = 
DalContextListener.getServletContext().getRealPath(strJRPath);
 
-    HashMap<String, Object> allParametersMap = new HashMap<String, Object>();
-    HashMap<String, Object> jrParams = new HashMap<String, Object>();
+    Map<String, Object> allParametersMap = new HashMap<>();
+    Map<String, Object> jrParams = new HashMap<>();
     loadFilterParams(jrParams, report, params);
     loadReportParams(jrParams, report, jrTemplatePath, jsonContent);
     // Include the HTTP session into the parameters that are sent to the report
@@ -388,7 +388,7 @@
    * @param params
    *          JSONObject with the values set in the filter parameters.
    */
-  private void loadFilterParams(HashMap<String, Object> jrParams, 
ReportDefinition report,
+  private void loadFilterParams(Map<String, Object> jrParams, ReportDefinition 
report,
       JSONObject params) throws JSONException {
     for (Parameter param : 
report.getProcessDefintion().getOBUIAPPParameterList()) {
       String paramName = param.getDBColumnName();
@@ -493,7 +493,7 @@
    * @param jsonContent
    *          JSONObject with the values set in the filter parameters.
    */
-  private void loadReportParams(HashMap<String, Object> jrParams, 
ReportDefinition report,
+  private void loadReportParams(Map<String, Object> jrParams, ReportDefinition 
report,
       String jrTemplatePath, JSONObject jsonContent) {
 
     final int lastSegmentIndex = jrTemplatePath.lastIndexOf("/");

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to