Improves: Use try-with-resources statement wherever it's possible

(OFBIZ-8202)

These are a non functional changes for the accounting component
I forgot to commit the change in EntityListIterator.java, hence a lot of confusion, sorry guys

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761047 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2016-09-16 15:15:34 +00:00
parent 082f6d48a3
commit dc7c438e9a
3 changed files with 10 additions and 44 deletions
@@ -44,7 +44,7 @@ import org.apache.ofbiz.entity.model.ModelFieldTypeReader;
/**
* Generic Entity Cursor List Iterator for Handling Cursored DB Results
*/
public class EntityListIterator implements ListIterator<GenericValue> {
public class EntityListIterator implements AutoCloseable, ListIterator<GenericValue> {
/** Module Name Used for debugging */
public static final String module = EntityListIterator.class.getName();