Skip to content

Commit

Permalink
Add AutoCloseable extension to EntityListIterator for use with try wi…
Browse files Browse the repository at this point in the history
…th resources, thanks to Deepak Dixit for the suggestion
  • Loading branch information
jonesde committed Nov 15, 2023
1 parent ef129ed commit d82db61
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -20,7 +20,7 @@
* Entity Cursor List Iterator for Handling Cursored Database Results
*/
@SuppressWarnings("unused")
public interface EntityListIterator extends ListIterator<EntityValue> {
public interface EntityListIterator extends ListIterator<EntityValue>, AutoCloseable {

/** Close the underlying ResultSet and Connection. This must ALWAYS be called when done with an EntityListIterator. */
void close() throws EntityException;
Expand Down

0 comments on commit d82db61

Please sign in to comment.