No functional change,

Improves EntityListIterator.close() warning

It was something like

ContentAssoc] has already been closed, not closing again.

It's now properly

This EntityListIterator for Entity [ContentAssoc] has already been closed, 
not closing again.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797356 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2017-06-02 09:49:32 +00:00
parent 74c018177a
commit 004cd686b2
@@ -148,7 +148,9 @@ public class EntityListIterator implements AutoCloseable, ListIterator<GenericVa
public void close() throws GenericEntityException {
if (closed) {
//maybe not the best way: throw new GenericResultSetClosedException("This EntityListIterator has been closed, this operation cannot be performed");
Debug.logWarning("This EntityListIterator for Entity [" + modelEntity==null?"":modelEntity.getEntityName() + "] has already been closed, not closing again.", module);
Debug.logWarning("This EntityListIterator for Entity [" +
modelEntity == null ? "" : modelEntity.getEntityName() +
"] has already been closed, not closing again.", module);
} else {
if (sqlp != null) {
sqlp.close();