jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1719550 - /jmeter/trunk/src/core/org/apache/jmeter/report/core/SampleMetadata.java
Date Fri, 11 Dec 2015 20:52:16 GMT
Author: fschumacher
Date: Fri Dec 11 20:52:16 2015
New Revision: 1719550

URL: http://svn.apache.org/viewvc?rev=1719550&view=rev
Log:
Use StringUtils.join instead of hand coding it.

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/report/core/SampleMetadata.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/core/SampleMetadata.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/core/SampleMetadata.java?rev=1719550&r1=1719549&r2=1719550&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/core/SampleMetadata.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/core/SampleMetadata.java Fri Dec 11 20:52:16
2015
@@ -22,6 +22,7 @@ import java.util.Arrays;
 import java.util.List;
 import java.util.TreeMap;
 
+import org.apache.commons.lang3.StringUtils;
 import org.apache.jmeter.samplers.SampleSaveConfiguration;
 import org.apache.jmeter.save.CSVSaveService;
 
@@ -200,14 +201,6 @@ public class SampleMetadata {
      */
     @Override
     public String toString() {
-        StringBuffer out = new StringBuffer();
-        int size = columns.size();
-        for (int i = 0; i < size; i++) {
-            out.append(columns.get(i));
-            if (i < size - 1) {
-                out.append(separator);
-            }
-        }
-        return out.toString();
+        return StringUtils.join(columns, separator);
     }
 }



Mime
View raw message