ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/filters BaseFilterReader.java
Date Wed, 29 Jun 2005 16:22:29 GMT
jkf         2005/06/29 09:22:29

  Modified:    src/main/org/apache/tools/ant/filters BaseFilterReader.java
  Log:
  As suggested by Kev Jackson
  
  Use FileUtils.close() instead of separate try catch implementation.
  
  Revision  Changes    Path
  1.19      +1 -5      ant/src/main/org/apache/tools/ant/filters/BaseFilterReader.java
  
  Index: BaseFilterReader.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/filters/BaseFilterReader.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- BaseFilterReader.java	9 Mar 2004 16:48:02 -0000	1.18
  +++ BaseFilterReader.java	29 Jun 2005 16:22:29 -0000	1.19
  @@ -47,11 +47,7 @@
        */
       public BaseFilterReader() {
           super(new StringReader(new String()));
  -        try {
  -            close();
  -        } catch (IOException  ioe) {
  -            // Ignore
  -        }
  +        FileUtils.close(this);
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message