jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1203375 - /jmeter/trunk/src/core/org/apache/jmeter/visualizers/CachingStatCalculator.java
Date Thu, 17 Nov 2011 21:27:34 GMT
Author: pmouawad
Date: Thu Nov 17 21:27:34 2011
New Revision: 1203375

URL: http://svn.apache.org/viewvc?rev=1203375&view=rev
Log:
Replace Vector by Collections.synchronized(new ArrayList())

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/visualizers/CachingStatCalculator.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/visualizers/CachingStatCalculator.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/visualizers/CachingStatCalculator.java?rev=1203375&r1=1203374&r2=1203375&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/visualizers/CachingStatCalculator.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/visualizers/CachingStatCalculator.java Thu Nov
17 21:27:34 2011
@@ -18,8 +18,9 @@
 
 package org.apache.jmeter.visualizers;
 
+import java.util.ArrayList;
+import java.util.Collections;
 import java.util.List;
-import java.util.Vector;
 
 import org.apache.jmeter.samplers.SampleResult;
 
@@ -28,7 +29,7 @@ import org.apache.jmeter.samplers.Sample
  */
 public class CachingStatCalculator extends SamplingStatCalculator {
 
-    private final List<Sample> storedValues = new Vector<Sample>();
+    private final List<Sample> storedValues = Collections.synchronizedList(new ArrayList<Sample>());
 
     public CachingStatCalculator(String string) {
         super(string);



Mime
View raw message