geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r574518 - /geronimo/sandbox/gshell/trunk/gshell-command-api/src/main/java/org/apache/geronimo/gshell/command/IO.java
Date Tue, 11 Sep 2007 09:08:00 GMT
Author: jdillon
Date: Tue Sep 11 02:08:00 2007
New Revision: 574518

URL: http://svn.apache.org/viewvc?rev=574518&view=rev
Log:
Use IOUtil to close()

Modified:
    geronimo/sandbox/gshell/trunk/gshell-command-api/src/main/java/org/apache/geronimo/gshell/command/IO.java

Modified: geronimo/sandbox/gshell/trunk/gshell-command-api/src/main/java/org/apache/geronimo/gshell/command/IO.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-command-api/src/main/java/org/apache/geronimo/gshell/command/IO.java?rev=574518&r1=574517&r2=574518&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-command-api/src/main/java/org/apache/geronimo/gshell/command/IO.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-command-api/src/main/java/org/apache/geronimo/gshell/command/IO.java
Tue Sep 11 02:08:00 2007
@@ -28,6 +28,7 @@
 
 import org.apache.geronimo.gshell.ansi.RenderWriter;
 import org.slf4j.helpers.MessageFormatter;
+import org.codehaus.plexus.util.IOUtil;
 
 /**
  * Container for input/output handles.
@@ -186,9 +187,9 @@
      * Close all streams.
      */
     public void close() throws IOException {
-        in.close();
-        out.close();
-        err.close();
+        IOUtil.close(in);
+        IOUtil.close(out);
+        IOUtil.close(err);
     }
 
     //



Mime
View raw message