Author: fschumacher
Date: Mon Feb 12 16:48:01 2018
New Revision: 1824019

URL: http://svn.apache.org/viewvc?rev=1824019&view=rev
Log:
Return a singleton list instead of allocating a new array and wrapping that

Part of #356 on Github. Contributed by Graham Russell (graham at ham1.co.uk)

Modified:
    
jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ActiveThreadsGraphConsumer.java

Modified: 
jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ActiveThreadsGraphConsumer.java
URL: 
http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ActiveThreadsGraphConsumer.java?rev=1824019&r1=1824018&r2=1824019&view=diff
==============================================================================
--- 
jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ActiveThreadsGraphConsumer.java
 (original)
+++ 
jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ActiveThreadsGraphConsumer.java
 Mon Feb 12 16:48:01 2018
@@ -17,7 +17,6 @@
  */
 package org.apache.jmeter.report.processor.graph.impl;
 
-import java.util.Arrays;
 import java.util.Collections;
 import java.util.HashMap;
 import java.util.Map;
@@ -73,7 +72,7 @@ public class ActiveThreadsGraphConsumer
                             if (index >= 0) {
                                 threadName = threadName.substring(0, index);
                             }
-                            return Arrays.asList(new String[] { threadName });
+                            return Collections.singletonList(threadName);
                         } else {
                             return Collections.emptyList();
                         }


Reply via email to