git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277652 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -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(); | ||||
| } | } | ||||