ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r533464 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ManifestTask.java
Date Sun, 29 Apr 2007 05:10:16 GMT
Author: kevj
Date: Sat Apr 28 22:10:13 2007
New Revision: 533464

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

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

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ManifestTask.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ManifestTask.java?view=diff&rev=533464&r1=533463&r2=533464
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ManifestTask.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ManifestTask.java Sat Apr 28 22:10:13
2007
@@ -254,9 +254,7 @@
             throw new BuildException("Failed to write " + manifestFile,
                                      e, getLocation());
         } finally {
-            if (w != null) {
-                w.close();
-            }
+            FileUtils.close(w);
         }
     }
 }



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


Mime
View raw message