ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r332100 - /ant/core/trunk/src/main/org/apache/tools/ant/types/FilterSet.java
Date Wed, 09 Nov 2005 18:39:38 GMT
Author: mbenson
Date: Wed Nov  9 10:39:35 2005
New Revision: 332100

URL: http://svn.apache.org/viewcvs?rev=332100&view=rev
Log:
use FileUtils.close()

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/types/FilterSet.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/FilterSet.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/types/FilterSet.java?rev=332100&r1=332099&r2=332100&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/types/FilterSet.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/types/FilterSet.java Wed Nov  9 10:39:35
2005
@@ -24,8 +24,9 @@
 import java.util.Properties;
 import java.util.Vector;
 
-import org.apache.tools.ant.BuildException;
 import org.apache.tools.ant.Project;
+import org.apache.tools.ant.BuildException;
+import org.apache.tools.ant.util.FileUtils;
 
 /**
  * A set of filters to be applied to something.
@@ -314,13 +315,7 @@
               throw new BuildException("Could not read filters from file: "
                 + filtersFile);
            } finally {
-              if (in != null) {
-                 try {
-                    in.close();
-                 } catch (IOException ioex) {
-                     // ignore
-                 }
-              }
+              FileUtils.close(in);
            }
         } else {
            throw new BuildException("Must specify a file not a directory in "



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


Mime
View raw message