Browse Source

Fileutils closing

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277652 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 20 years ago
parent
commit
3477cc5849
1 changed files with 2 additions and 15 deletions
  1. +2
    -15
      src/main/org/apache/tools/ant/taskdefs/optional/ReplaceRegExp.java

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

@@ -455,21 +455,8 @@ public class ReplaceRegExp extends Task {
log("No change made", Project.MSG_DEBUG); log("No change made", Project.MSG_DEBUG);
} }
} finally { } finally {
try {
if (r != null) {
r.close();
}
} catch (Exception e) {
// ignore any secondary exceptions
}

try {
if (w != null) {
w.close();
}
} catch (Exception e) {
// ignore any secondary exceptions
}
FileUtils.close(r);
FileUtils.close(w);
if (temp != null) { if (temp != null) {
temp.delete(); temp.delete();
} }


Loading…
Cancel
Save