ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1002465 - /ant/core/trunk/src/main/org/apache/tools/ant/loader/AntClassLoader5.java
Date Wed, 29 Sep 2010 04:28:06 GMT
Author: bodewig
Date: Wed Sep 29 04:28:06 2010
New Revision: 1002465

URL: http://svn.apache.org/viewvc?rev=1002465&view=rev
Log:
implement Closeable in AntClassLoader5

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

Modified: ant/core/trunk/src/main/org/apache/tools/ant/loader/AntClassLoader5.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/loader/AntClassLoader5.java?rev=1002465&r1=1002464&r2=1002465&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/loader/AntClassLoader5.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/loader/AntClassLoader5.java Wed Sep 29 04:28:06
2010
@@ -19,15 +19,17 @@
 package org.apache.tools.ant.loader;
 
 import java.util.Enumeration;
+import java.io.Closeable;
 import java.io.IOException;
 import org.apache.tools.ant.AntClassLoader;
 import org.apache.tools.ant.Project;
 import org.apache.tools.ant.types.Path;
 
 /**
- * Overrides getResources which became non-final in Java5
+ * Overrides getResources which became non-final in Java5 and
+ * implements Closeable
  */
-public class AntClassLoader5 extends AntClassLoader {
+public class AntClassLoader5 extends AntClassLoader implements Closeable {
     /**
      * Creates a classloader for the given project using the classpath given.
      *
@@ -53,4 +55,9 @@ public class AntClassLoader5 extends Ant
     public Enumeration getResources(String name) throws IOException {
         return getNamedResources(name);
     }
+
+    /** {@inheritDoc} */
+    public void close() {
+        cleanup();
+    }
 }



Mime
View raw message