Browse Source

Use FileUtils.close

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@720917 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 16 years ago
parent
commit
aee918fc28
1 changed files with 2 additions and 14 deletions
  1. +2
    -14
      src/main/org/apache/tools/ant/taskdefs/optional/TraXLiaison.java

+ 2
- 14
src/main/org/apache/tools/ant/taskdefs/optional/TraXLiaison.java View File

@@ -193,20 +193,8 @@ public class TraXLiaison implements XSLTLiaison3, ErrorListener, XSLTLoggerAware
// make sure to close all handles, otherwise the garbage // make sure to close all handles, otherwise the garbage
// collector will close them...whenever possible and // collector will close them...whenever possible and
// Windows may complain about not being able to delete files. // Windows may complain about not being able to delete files.
try {
if (fis != null) {
fis.close();
}
} catch (IOException ignored) {
// ignore
}
try {
if (fos != null) {
fos.close();
}
} catch (IOException ignored) {
// ignore
}
FileUtils.close(fis);
FileUtils.close(fos);
} }
} }




Loading…
Cancel
Save