ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r545087 - /ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java
Date Thu, 07 Jun 2007 06:59:44 GMT
Author: kevj
Date: Wed Jun  6 23:59:43 2007
New Revision: 545087

URL: http://svn.apache.org/viewvc?view=rev&rev=545087
Log:
-use FileUtils.close

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java?view=diff&rev=545087&r1=545086&r2=545087
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java Wed Jun  6 23:59:43 2007
@@ -1399,13 +1399,7 @@
 
             throw new ClassNotFoundException(name);
         } finally {
-            try {
-                if (stream != null) {
-                    stream.close();
-                }
-            } catch (IOException e) {
-                //ignore
-            }
+        	FileUtils.close(stream);
         }
     }
 
@@ -1563,4 +1557,4 @@
         return "AntClassLoader[" + getClasspath() + "]";
     }
 
-}
+}
\ No newline at end of file



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


Mime
View raw message