dixitdeepak opened a new pull request, #1163:
URL: https://github.com/apache/ofbiz-framework/pull/1163
Improved: Updated iteration logic to avoid using
EntityListIterator.hasNext(), which is inefficient due to JDBC ResultSet
behavior.
- Replaced hasNext() checks with next() != null pattern
- Aligned with recommended usage in EntityListIterator JavaDoc
- Prevented unnecessary ResultSet cursor operations and warning logs
- Improved iteration performance and reduced overhead
Example:
while ((value = iterator.next()) != null) { ... }
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]