Make Enumerator extend java.io.Closeable rather than AutoCloseable. The latter does not exist until JDK 1.7.
diff --git a/src/main/java/net/hydromatic/linq4j/Enumerator.java b/src/main/java/net/hydromatic/linq4j/Enumerator.java
index c9b8ce5..df51ad3 100644
--- a/src/main/java/net/hydromatic/linq4j/Enumerator.java
+++ b/src/main/java/net/hydromatic/linq4j/Enumerator.java
@@ -17,6 +17,8 @@
*/
package net.hydromatic.linq4j;
+import java.io.Closeable;
+
/**
* Supports a simple iteration over a collection.
*
@@ -27,7 +29,7 @@
*
* @param <T> element type
*/
-public interface Enumerator<T> extends AutoCloseable {
+public interface Enumerator<T> extends Closeable {
/**
* Gets the current element in the collection.
*