ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r502509 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Zip.java
Date Fri, 02 Feb 2007 05:36:02 GMT
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


Mime
View raw message