ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional ReplaceRegExp.java
Date Sun, 13 Feb 2005 23:21:24 GMT
stevel      2005/02/13 15:21:24

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional
                        ReplaceRegExp.java
  Log:
  Fileutils closing
  
  Revision  Changes    Path
  1.40      +2 -15     ant/src/main/org/apache/tools/ant/taskdefs/optional/ReplaceRegExp.java
  
  Index: ReplaceRegExp.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/ReplaceRegExp.java,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- ReplaceRegExp.java	6 Jan 2005 12:05:08 -0000	1.39
  +++ ReplaceRegExp.java	13 Feb 2005 23:21:23 -0000	1.40
  @@ -455,21 +455,8 @@
                   log("No change made", Project.MSG_DEBUG);
               }
           } 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) {
                   temp.delete();
               }
  
  
  

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


Mime
View raw message