← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 19671: minor fix

 

------------------------------------------------------------
revno: 19671
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-07-16 16:44:12 +0700
message:
  minor fix
modified:
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/node/AbstractNodeSerializer.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-core/src/main/java/org/hisp/dhis/node/AbstractNodeSerializer.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/node/AbstractNodeSerializer.java	2015-07-16 06:54:49 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/node/AbstractNodeSerializer.java	2015-07-16 09:44:12 +0000
@@ -115,10 +115,10 @@
         for ( Node node : complexNode.getChildren() )
         {
             dispatcher( node );
+            flushStream();
         }
 
         endWriteComplexNode( complexNode );
-        flushStream();
     }
 
     protected abstract void endWriteComplexNode( ComplexNode complexNode ) throws Exception;
@@ -137,10 +137,10 @@
         for ( Node node : collectionNode.getChildren() )
         {
             dispatcher( node );
+            flushStream();
         }
 
         endWriteCollectionNode( collectionNode );
-        flushStream();
     }
 
     protected abstract void endWriteCollectionNode( CollectionNode collectionNode ) throws Exception;