cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: rev 76148 - cocoon/branches/BRANCH_2_1_X/src/blocks/databases/java/org/apache/cocoon/acting
Date Wed, 17 Nov 2004 16:23:36 GMT
Author: antonio
Date: Wed Nov 17 08:23:35 2004
New Revision: 76148

Modified:
   cocoon/branches/BRANCH_2_1_X/src/blocks/databases/java/org/apache/cocoon/acting/AbstractDatabaseAction.java
Log:
Better variable name

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/databases/java/org/apache/cocoon/acting/AbstractDatabaseAction.java
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/databases/java/org/apache/cocoon/acting/AbstractDatabaseAction.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/databases/java/org/apache/cocoon/acting/AbstractDatabaseAction.java
Wed Nov 17 08:23:35 2004
@@ -723,12 +723,14 @@
     protected StringBuffer buildList(Configuration[] values, int begin) throws ConfigurationException
{
         StringBuffer buffer = new StringBuffer();
         int length = values.length;
+        boolean prependComma = begin > 0;
         for (int i = 0; i < length; i++) {
-            if (begin > 0) {
+            if (prependComma) {
                 buffer.append(", ");
+            } else {
+                prependComma = true;
             }
             buffer.append(values[i].getAttribute("dbcol"));
-            begin++;
         }
         return buffer;
     }

Mime
View raw message