db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1348313 - /db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/SummaryHelper.java
Date Sat, 09 Jun 2012 03:43:58 GMT
Author: tfischer
Date: Sat Jun  9 03:43:58 2012
New Revision: 1348313

URL: http://svn.apache.org/viewvc?rev=1348313&view=rev
Log:
use String builder to make findbugs happy

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=1348313&r1=1348312&r2=1348313&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
Sat Jun  9 03:43:58 2012
@@ -757,7 +757,7 @@ public class SummaryHelper
             ListOrderedMapCI rec = (ListOrderedMapCI) i.next();
             OrderedMapIterator rI = rec.orderedMapIterator();
             String heading = "";
-            String recString = "";
+            StringBuilder recString = new StringBuilder();
             while (rI.hasNext())
             {
                 String colId = (String) rI.next();
@@ -770,10 +770,10 @@ public class SummaryHelper
                     }
                 }
                 Object v = rI.getValue();
-                recString += v.toString();
+                recString.append(v.toString());
                 if (rI.hasNext())
                 {
-                    recString += ", ";
+                    recString.append(", ");
                 }
             }
             if (first)
@@ -782,7 +782,7 @@ public class SummaryHelper
                 out.write(heading);
                 out.write("\n");
             }
-            out.write(recString);
+            out.write(recString.toString());
             out.write("\n");
         }
     }



---------------------------------------------------------------------
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