You can see and participate in discussion on this very topic here: https://github.com/apache/jena/pull/133
--- A. Soroka The University of Virginia Library > On Jul 26, 2016, at 4:05 PM, Raphael W. Majeed <[email protected]> wrote: > > Hello there, > > I was working with Jena dependencies in my projects for some time and was > always wondering why the org.apache.jena.util.iterator.ClosableIterator > didn't extend the java.lang.AutoCloseable interface. > > It appears to me like a simple change that would allow other developers > (and me) to use these iterators in try-with-resource statements. This would > simplify working with Jena significantly. > > Is there a specific reason why the ClosableIterator doesn't extend the > AutoClosable interface? > > Regards, > Raphael
