ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r453156 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java
Date Thu, 05 Oct 2006 09:24:12 GMT
Author: stevel
Date: Thu Oct  5 02:24:11 2006
New Revision: 453156

URL: http://svn.apache.org/viewvc?view=rev&rev=453156
Log:
close using FileUtils.close

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

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java?view=diff&rev=453156&r1=453155&r2=453156
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java Thu Oct
 5 02:24:11 2006
@@ -37,6 +37,7 @@
 import java.util.Vector;
 import org.apache.tools.ant.BuildException;
 import org.apache.tools.ant.Task;
+import org.apache.tools.ant.util.FileUtils;
 import org.apache.tools.ant.types.EnumeratedAttribute;
 
 /**
@@ -213,13 +214,7 @@
         } catch (IOException ioe) {
             throw new BuildException(ioe, getLocation());
         } finally {
-            if (bos != null) {
-                try {
-                    bos.close();
-                } catch (IOException ioex) {
-                    // ignore
-                }
-            }
+            FileUtils.close(bos);
         }
     }
 



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


Mime
View raw message