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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user