You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by pa...@apache.org on 2023/08/02 05:40:16 UTC

[ofbiz-framework] branch trunk updated: Fixed: Make loop counters in EntitySQLProcessor.groovy into local variables (OFBIZ-12836)

This is an automated email from the ASF dual-hosted git repository.

paulfoxworthy pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 1e96dd11bf Fixed: Make loop counters in EntitySQLProcessor.groovy into local variables (OFBIZ-12836)
1e96dd11bf is described below

commit 1e96dd11bfa73a35dac518e74e0bf29e204ddf1f
Author: paul <pa...@cohsoft.com.au>
AuthorDate: Wed Aug 2 15:38:45 2023 +1000

    Fixed: Make loop counters in EntitySQLProcessor.groovy into local variables (OFBIZ-12836)
---
 .../groovy/org/apache/ofbiz/webtools/entity/EntitySQLProcessor.groovy | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/framework/webtools/src/main/groovy/org/apache/ofbiz/webtools/entity/EntitySQLProcessor.groovy b/framework/webtools/src/main/groovy/org/apache/ofbiz/webtools/entity/EntitySQLProcessor.groovy
index 72feb059b5..9358aba554 100644
--- a/framework/webtools/src/main/groovy/org/apache/ofbiz/webtools/entity/EntitySQLProcessor.groovy
+++ b/framework/webtools/src/main/groovy/org/apache/ofbiz/webtools/entity/EntitySQLProcessor.groovy
@@ -42,7 +42,7 @@ if (sqlCommand && selGroup) {
                 ResultSetMetaData rsmd = rs.getMetaData()
 
                 int numberOfColumns = rsmd.getColumnCount()
-                for (i = 1; i <= numberOfColumns; i++) {
+                for (int i = 1; i <= numberOfColumns; i++) {
                     columns.add(rsmd.getColumnLabel(i))
                 }
 
@@ -54,7 +54,7 @@ if (sqlCommand && selGroup) {
                     }
 
                     List<Object> record = []
-                    for (i = 1; i <= numberOfColumns; i++) {
+                    for (int i = 1; i <= numberOfColumns; i++) {
                         record.add(rs.getObject(i))
                     }
                     records.add(record)