← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20404: minor, use lambda in import summaries

 

------------------------------------------------------------
revno: 20404
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2015-09-30 11:29:57 +0700
message:
  minor, use lambda in import summaries
modified:
  dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/importsummary/ImportSummaries.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/importsummary/ImportSummaries.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/importsummary/ImportSummaries.java	2015-07-08 04:24:08 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/importsummary/ImportSummaries.java	2015-09-30 04:29:57 +0000
@@ -59,10 +59,7 @@
 
     public void addImportSummaries( ImportSummaries importSummaries )
     {
-        for ( ImportSummary importSummary : importSummaries.getImportSummaries() )
-        {
-            addImportSummary( importSummary );
-        }
+        importSummaries.getImportSummaries().forEach( this::addImportSummary );
     }
 
     public ImportSummaries addImportSummary( ImportSummary importSummary )