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 ProjectHelperImpl.java
Date Sat, 21 May 2005 21:38:47 GMT
stevel      2005/05/21 14:38:47

  Modified:    src/main/org/apache/tools/ant/helper ProjectHelperImpl.java
  Log:
  use of fileUtils.close
  
  Revision  Changes    Path
  1.31      +1 -7      ant/src/main/org/apache/tools/ant/helper/ProjectHelperImpl.java
  
  Index: ProjectHelperImpl.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/helper/ProjectHelperImpl.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- ProjectHelperImpl.java	29 Mar 2005 21:47:59 -0000	1.30
  +++ ProjectHelperImpl.java	21 May 2005 21:38:47 -0000	1.31
  @@ -162,13 +162,7 @@
               throw new BuildException("Error reading project file: "
                                        + 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