[jasper-library-upgrade] Added missing 'Iterator' change
authorCarlos Aristu <carlos.aristu@openbravo.com>
Thu, 21 May 2015 19:06:52 +0200
changeset 26761 b4a29c1c6c4f
parent 26760 51e873022c10
child 26762 6ade5c818884
[jasper-library-upgrade] Added missing 'Iterator' change
src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java
--- a/src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java	Thu May 21 12:38:47 2015 +0200
+++ b/src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java	Thu May 21 19:06:52 2015 +0200
@@ -481,8 +481,7 @@
           filename = report.getFilename();
         }
         response.setHeader("Content-disposition", "attachment" + "; filename=" + filename);
-        for (Iterator<JasperPrint> iterator = jrPrintReports.iterator(); iterator.hasNext();) {
-          JasperPrint jasperPrint = (JasperPrint) iterator.next();
+        for (JasperPrint jasperPrint : jrPrintReports) {
           ReportingUtils.saveReport(jasperPrint, ExportType.PDF, null, os);
         }
       } else {