Revision: 18953
          http://sourceforge.net/p/gate/code/18953
Author:   johann_p
Date:     2015-10-18 11:59:01 +0000 (Sun, 18 Oct 2015)
Log Message:
-----------
Fix a bug that left open the file handles when 
exporting documents. Code to close them was already
there but not actually used. 

Modified Paths:
--------------
    gate/trunk/src/main/gate/DocumentExporter.java

Modified: gate/trunk/src/main/gate/DocumentExporter.java
===================================================================
--- gate/trunk/src/main/gate/DocumentExporter.java      2015-10-17 11:16:49 UTC 
(rev 18952)
+++ gate/trunk/src/main/gate/DocumentExporter.java      2015-10-18 11:59:01 UTC 
(rev 18953)
@@ -110,7 +110,7 @@
     FileOutputStream out = null;
     try {
       out = new FileOutputStream(file);
-      export(doc, new FileOutputStream(file), options);
+      export(doc, out, options);
       out.flush();
     } finally {
       IOUtils.closeQuietly(out);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to