Browse Source

cleanup of imports, use FileUtils.close, submitted by Kevin Jackson

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@345265 13f79535-47bb-0310-9956-ffa450edef68
master
Antoine Levy-Lambert 19 years ago
parent
commit
4bbd382ebf
1 changed files with 1 additions and 8 deletions
  1. +1
    -8
      src/main/org/apache/tools/ant/taskdefs/Expand.java

+ 1
- 8
src/main/org/apache/tools/ant/taskdefs/Expand.java View File

@@ -28,7 +28,6 @@ import java.util.Iterator;
import java.util.Vector;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.DirectoryScanner;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.Task;
import org.apache.tools.ant.types.FileSet;
@@ -281,13 +280,7 @@ public class Expand extends Task {
fos.close();
fos = null;
} finally {
if (fos != null) {
try {
fos.close();
} catch (IOException e) {
// ignore
}
}
FileUtils.close(fos);
}
}



Loading…
Cancel
Save