db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1377417 - /db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/SummaryHelper.java
Date Sun, 26 Aug 2012 10:55:04 GMT
Author: tfischer
Date: Sun Aug 26 10:55:04 2012
New Revision: 1377417

URL: http://svn.apache.org/viewvc?rev=1377417&view=rev
Log:
use StringBuilder to construct string

Modified:
    db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/SummaryHelper.java

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/SummaryHelper.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/SummaryHelper.java?rev=1377417&r1=1377416&r2=1377417&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/SummaryHelper.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/SummaryHelper.java
Sun Aug 26 10:55:04 2012
@@ -756,17 +756,17 @@ public class SummaryHelper
         {
             ListOrderedMapCI rec = (ListOrderedMapCI) i.next();
             OrderedMapIterator rI = rec.orderedMapIterator();
-            String heading = "";
+            StringBuilder heading= new StringBuilder();
             StringBuilder recString = new StringBuilder();
             while (rI.hasNext())
             {
                 String colId = (String) rI.next();
                 if (first)
                 {
-                    heading += "\"" + colId + "\"";
+                    heading.append("\"").append(colId).append("\"");
                     if (rI.hasNext())
                     {
-                        heading += ", ";
+                        heading.append(", ");
                     }
                 }
                 Object v = rI.getValue();
@@ -779,7 +779,7 @@ public class SummaryHelper
             if (first)
             {
                 first = false;
-                out.write(heading);
+                out.write(heading.toString());
                 out.write("\n");
             }
             out.write(recString.toString());



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message