You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by ke...@apache.org on 2007/02/02 06:36:02 UTC

svn commit: r502509 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Zip.java

Author: kevj
Date: Thu Feb  1 21:36:01 2007
New Revision: 502509

URL: http://svn.apache.org/viewvc?view=rev&rev=502509
Log:
-use FileUtils.close

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Zip.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Zip.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Zip.java?view=diff&rev=502509&r1=502508&r2=502509
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Zip.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Zip.java Thu Feb  1 21:36:01 2007
@@ -899,13 +899,7 @@
                                      + "(" + ioe.getMessage() + ")", ioe,
                                      getLocation());
         } finally {
-            if (os != null) {
-                try {
-                    os.close();
-                } catch (IOException e) {
-                    //ignore
-                }
-            }
+            FileUtils.close(os);
         }
         return true;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org