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/helper ProjectHelper2.java
Date Sat, 21 May 2005 21:39:53 GMT
stevel      2005/05/21 14:39:53

  Modified:    src/main/org/apache/tools/ant/helper ProjectHelper2.java
  Log:
  use of fileUtils.close
  
  Revision  Changes    Path
  1.56      +1 -7      ant/src/main/org/apache/tools/ant/helper/ProjectHelper2.java
  
  Index: ProjectHelper2.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/helper/ProjectHelper2.java,v
  retrieving revision 1.55
  retrieving revision 1.56
  diff -u -r1.55 -r1.56
  --- ProjectHelper2.java	16 May 2005 18:59:58 -0000	1.55
  +++ ProjectHelper2.java	21 May 2005 21:39:53 -0000	1.56
  @@ -244,13 +244,7 @@
                                        + buildFileName + ": " + exc.getMessage(),
                                        exc);
           } finally {
  -            if (inputStream != null) {
  -                try {
  -                    inputStream.close();
  -                } catch (IOException ioe) {
  -                    // ignore this
  -                }
  -            }
  +            FileUtils.close(inputStream);
           }
       }
   
  
  
  

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


Mime
View raw message