← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1893: Reimplemented dummy close() method on read and write end of pipes

 

------------------------------------------------------------
revno: 1893
committer: Bob Jolliffe <bobj@bobj-laptop>
branch nick: trunk
timestamp: Fri 2010-05-21 16:07:17 +0100
message:
  Reimplemented dummy close() method on read and write end of pipes
modified:
  dhis-2/dhis-services/dhis-service-xml/src/main/java/org/amplecode/staxwax/framework/XMLPipe.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-xml/src/main/java/org/amplecode/staxwax/framework/XMLPipe.java'
--- dhis-2/dhis-services/dhis-service-xml/src/main/java/org/amplecode/staxwax/framework/XMLPipe.java	2010-05-21 13:31:42 +0000
+++ dhis-2/dhis-services/dhis-service-xml/src/main/java/org/amplecode/staxwax/framework/XMLPipe.java	2010-05-21 15:07:17 +0000
@@ -169,10 +169,8 @@
         public void close()
             throws XMLStreamException
         {
-            throw new UnsupportedOperationException("Unused functionality.  Not implemented" );
-//            closed = true;
-//            // TODO: think about emptying eventq?
-//            return;
+            // not a real stream ... no handle to close
+	    return;
         }
 
         @Override
@@ -278,7 +276,8 @@
         public void close()
             throws XMLStreamException
         {
-            throw new UnsupportedOperationException("Unused functionality.  Not implemented" );
+            // not a real stream ... no handle to close
+	    return;
         }
     };
 }