geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r705618 - /geronimo/gshell/trunk/gshell-support/gshell-xstore/src/main/java/org/apache/geronimo/gshell/xstore/XStoreRecordImpl.java
Date Fri, 17 Oct 2008 13:36:04 GMT
Author: jdillon
Date: Fri Oct 17 06:36:04 2008
New Revision: 705618

URL: http://svn.apache.org/viewvc?rev=705618&view=rev
Log:
Use Closer instead of IOUtil

Modified:
    geronimo/gshell/trunk/gshell-support/gshell-xstore/src/main/java/org/apache/geronimo/gshell/xstore/XStoreRecordImpl.java

Modified: geronimo/gshell/trunk/gshell-support/gshell-xstore/src/main/java/org/apache/geronimo/gshell/xstore/XStoreRecordImpl.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-support/gshell-xstore/src/main/java/org/apache/geronimo/gshell/xstore/XStoreRecordImpl.java?rev=705618&r1=705617&r2=705618&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-support/gshell-xstore/src/main/java/org/apache/geronimo/gshell/xstore/XStoreRecordImpl.java
(original)
+++ geronimo/gshell/trunk/gshell-support/gshell-xstore/src/main/java/org/apache/geronimo/gshell/xstore/XStoreRecordImpl.java
Fri Oct 17 06:36:04 2008
@@ -23,12 +23,12 @@
 import org.apache.commons.vfs.FileSystemException;
 import org.apache.geronimo.gshell.marshal.Marshaller;
 import org.apache.geronimo.gshell.marshal.MarshallerSupport;
-import org.codehaus.plexus.util.IOUtil;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 import java.io.BufferedInputStream;
 import java.io.BufferedOutputStream;
+import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.List;
@@ -84,7 +84,12 @@
             throw new XStoreException(e);
         }
         finally {
-            IOUtil.close(output);
+            try {
+                output.close();
+            }
+            catch (IOException e) {
+                // ignore
+            }
         }
     }
 
@@ -112,7 +117,12 @@
             throw new XStoreException(e);
         }
         finally {
-            IOUtil.close(input);
+            try {
+                input.close();
+            }
+            catch (IOException e) {
+                // ignore
+            }
         }
     }
 



Mime
View raw message