Browse Source

use FileUtils.close()

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@332100 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 19 years ago
parent
commit
3ba9166df0
1 changed files with 3 additions and 8 deletions
  1. +3
    -8
      src/main/org/apache/tools/ant/types/FilterSet.java

+ 3
- 8
src/main/org/apache/tools/ant/types/FilterSet.java View File

@@ -24,8 +24,9 @@ import java.util.Hashtable;
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 @@ public class FilterSet extends DataType implements Cloneable {
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 "


Loading…
Cancel
Save