No functional changes.
Replaces entityListIterator.close() in finally by try-with-ressource git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797097 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -207,12 +207,10 @@ public abstract class ListFinder extends Finder {
|
||||
options.setMaxRows(size * (index + 1));
|
||||
}
|
||||
boolean beganTransaction = false;
|
||||
try {
|
||||
try (EntityListIterator eli = delegator.find(entityName, whereEntityCondition, havingEntityCondition, fieldsToSelect, orderByFields, options)) {
|
||||
if (useTransaction) {
|
||||
beganTransaction = TransactionUtil.begin();
|
||||
}
|
||||
|
||||
EntityListIterator eli = delegator.find(entityName, whereEntityCondition, havingEntityCondition, fieldsToSelect, orderByFields, options);
|
||||
this.outputHandler.handleOutput(eli, context, listAcsr);
|
||||
} catch (GenericEntityException e) {
|
||||
String errMsg = "Failure in by " + label + " find operation, rolling back transaction";
|
||||
|
||||
Reference in New Issue
Block a user