ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r377305 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ANTLR.java
Date Mon, 13 Feb 2006 05:11:20 GMT
Author: kevj
Date: Sun Feb 12 21:11:17 2006
New Revision: 377305

URL: http://svn.apache.org/viewcvs?rev=377305&view=rev
Log:
use FileUtils.close

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ANTLR.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ANTLR.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ANTLR.java?rev=377305&r1=377304&r2=377305&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ANTLR.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ANTLR.java Sun Feb 12 21:11:17
2006
@@ -407,11 +407,7 @@
         } catch (IOException e) {
             throw new BuildException(e, getLocation());
         } finally {
-            try {
-                bos.close();
-            } catch (IOException e) {
-                // ignore
-            }
+            FileUtils.close(bos);
         }
     }
 



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


Mime
View raw message