jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1418480 - /jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java
Date Fri, 07 Dec 2012 21:16:32 GMT
Author: pmouawad
Date: Fri Dec  7 21:16:32 2012
New Revision: 1418480

URL: http://svn.apache.org/viewvc?rev=1418480&view=rev
Log:
remove copy/paste between addRawSubResult and storeSubResult

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java?rev=1418480&r1=1418479&r2=1418480&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java Fri Dec  7 21:16:32
2012
@@ -576,11 +576,7 @@ public class SampleResult implements Ser
      * @param subResult
      */
     public void addRawSubResult(SampleResult subResult){
-        if (subResults == null) {
-            subResults = new ArrayList<SampleResult>();
-        }
-        subResults.add(subResult);
-        subResult.setParent(this);
+        storeSubResult(subResult);
     }
 
     /**



Mime
View raw message