jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1818560 - /jmeter/trunk/src/core/org/apache/jmeter/testelement/AbstractScopedTestElement.java
Date Mon, 18 Dec 2017 12:46:53 GMT
Author: pmouawad
Date: Mon Dec 18 12:46:53 2017
New Revision: 1818560

URL: http://svn.apache.org/viewvc?rev=1818560&view=rev
Log:
Simplify code by Graham Russell
This comment #355

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/testelement/AbstractScopedTestElement.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/testelement/AbstractScopedTestElement.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/testelement/AbstractScopedTestElement.java?rev=1818560&r1=1818559&r2=1818560&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/testelement/AbstractScopedTestElement.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/testelement/AbstractScopedTestElement.java Mon
Dec 18 12:46:53 2017
@@ -19,6 +19,7 @@
 package org.apache.jmeter.testelement;
 
 import java.util.ArrayList;
+import java.util.Collections;
 import java.util.List;
 
 import org.apache.jmeter.samplers.SampleResult;
@@ -157,9 +158,7 @@ public abstract class AbstractScopedTest
             sampleList.add(result);
         }
         if (isScopeChildren(scope) || isScopeAll(scope)) {
-            for (SampleResult subResult : result.getSubResults()) {
-                sampleList.add(subResult);
-            }
+            Collections.addAll(sampleList, result.getSubResults());
         }
         return sampleList;
     }



Mime
View raw message