Browse Source

use of fileUtils.close

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278319 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 20 years ago
parent
commit
607f1c7357
2 changed files with 2 additions and 14 deletions
  1. +1
    -7
      src/main/org/apache/tools/ant/helper/ProjectHelper2.java
  2. +1
    -7
      src/main/org/apache/tools/ant/helper/ProjectHelperImpl.java

+ 1
- 7
src/main/org/apache/tools/ant/helper/ProjectHelper2.java View File

@@ -244,13 +244,7 @@ public class ProjectHelper2 extends ProjectHelper {
+ buildFileName + ": " + exc.getMessage(),
exc);
} finally {
if (inputStream != null) {
try {
inputStream.close();
} catch (IOException ioe) {
// ignore this
}
}
FileUtils.close(inputStream);
}
}



+ 1
- 7
src/main/org/apache/tools/ant/helper/ProjectHelperImpl.java View File

@@ -162,13 +162,7 @@ public class ProjectHelperImpl extends ProjectHelper {
throw new BuildException("Error reading project file: "
+ exc.getMessage(), exc);
} finally {
if (inputStream != null) {
try {
inputStream.close();
} catch (IOException ioe) {
// ignore this
}
}
FileUtils.close(inputStream);
}
}



Loading…
Cancel
Save