Browse Source

As suggested by Kev Jackson

Use FileUtils.close() instead of separate try catch implementation.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278443 13f79535-47bb-0310-9956-ffa450edef68
master
Jacobus Martinus Kruithof 20 years ago
parent
commit
231d018569
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      src/main/org/apache/tools/ant/filters/BaseFilterReader.java

+ 1
- 5
src/main/org/apache/tools/ant/filters/BaseFilterReader.java View File

@@ -47,11 +47,7 @@ public abstract class BaseFilterReader extends FilterReader {
*/
public BaseFilterReader() {
super(new StringReader(new String()));
try {
close();
} catch (IOException ioe) {
// Ignore
}
FileUtils.close(this);
}

/**


Loading…
Cancel
Save