jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1719664 - /jmeter/trunk/src/core/org/apache/jmeter/report/core/JsonUtil.java
Date Sat, 12 Dec 2015 11:59:25 GMT
Author: fschumacher
Date: Sat Dec 12 11:59:24 2015
New Revision: 1719664

URL: http://svn.apache.org/viewvc?rev=1719664&view=rev
Log:
Use vararg instead of array, to make method more flexible. Declare param final.

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

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/core/JsonUtil.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/core/JsonUtil.java?rev=1719664&r1=1719663&r2=1719664&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/core/JsonUtil.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/core/JsonUtil.java Sat Dec 12 11:59:24
2015
@@ -35,7 +35,7 @@ public final class JsonUtil {
      *            the array
      * @return the json string
      */
-    public static String toJsonArray(String[] array) {
+    public static String toJsonArray(final String... array) {
         return '[' + StringUtils.join(array, ", ") + ']';
     }
 



Mime
View raw message