Revision: 4851
          http://sourceforge.net/p/vexi/code/4851
Author:   mkpg2
Date:     2016-03-23 23:49:08 +0000 (Wed, 23 Mar 2016)
Log Message:
-----------
Fix (!). By default should close input streams when piping.

Modified Paths:
--------------
    trunk/org.vexi-library.util/src/main/java/org/vexi/util/IOUtil.java

Modified: trunk/org.vexi-library.util/src/main/java/org/vexi/util/IOUtil.java
===================================================================
--- trunk/org.vexi-library.util/src/main/java/org/vexi/util/IOUtil.java 
2016-03-22 18:50:08 UTC (rev 4850)
+++ trunk/org.vexi-library.util/src/main/java/org/vexi/util/IOUtil.java 
2016-03-23 23:49:08 UTC (rev 4851)
@@ -15,7 +15,8 @@
                        
                }
        }finally{
-               out.close();
+               in.close();
+                       out.close();
        }
        }
        
@@ -29,7 +30,11 @@
                        
                }
        }finally{
-               if(close) out.close();
+               if(close) {
+                       in.close();
+                       out.close();
+               }
+               }
        }
        }    
        

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


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to