svn commit: r1797356 - /ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/util/EntityListIterator.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1797356 - /ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/util/EntityListIterator.java

jleroux@apache.org
Author: jleroux
Date: Fri Jun  2 09:49:32 2017
New Revision: 1797356

URL: http://svn.apache.org/viewvc?rev=1797356&view=rev
Log:
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.

Modified:
    ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/util/EntityListIterator.java

Modified: ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/util/EntityListIterator.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/util/EntityListIterator.java?rev=1797356&r1=1797355&r2=1797356&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/util/EntityListIterator.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/util/EntityListIterator.java Fri Jun  2 09:49:32 2017
@@ -148,7 +148,9 @@ public class EntityListIterator implemen
     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();