jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1203367 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/accesslog/TCLogParser.java
Date Thu, 17 Nov 2011 21:11:30 GMT
Author: pmouawad
Date: Thu Nov 17 21:11:30 2011
New Revision: 1203367

URL: http://svn.apache.org/viewvc?rev=1203367&view=rev
Log:
Replace Vector by ArrayList , no need for synchronization.

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/accesslog/TCLogParser.java

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/accesslog/TCLogParser.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/accesslog/TCLogParser.java?rev=1203367&r1=1203366&r2=1203367&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/accesslog/TCLogParser.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/accesslog/TCLogParser.java
Thu Nov 17 21:11:30 2011
@@ -26,8 +26,9 @@ import java.io.IOException;
 import java.io.InputStreamReader;
 import java.io.UnsupportedEncodingException;
 import java.net.URLDecoder;
+import java.util.ArrayList;
+import java.util.List;
 import java.util.StringTokenizer;
-import java.util.Vector;
 import java.util.zip.GZIPInputStream;
 
 import org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase;
@@ -468,7 +469,7 @@ public class TCLogParser implements LogP
      * @param stringparams
      */
     public NVPair[] convertStringtoNVPair(String stringparams) {
-        Vector<String> vparams = this.parseParameters(stringparams);
+        List<String> vparams = this.parseParameters(stringparams);
         NVPair[] nvparams = new NVPair[vparams.size()];
         // convert the Parameters
         for (int idx = 0; idx < nvparams.length; idx++) {
@@ -522,10 +523,10 @@ public class TCLogParser implements LogP
      * purpose of this utility.
      *
      * @param parameters
-     * @return Vector
+     * @return List<String>
      */
-    protected Vector<String> parseParameters(String parameters) {
-        Vector<String> parsedParams = new Vector<String>();
+    protected List<String> parseParameters(String parameters) {
+    	List<String> parsedParams = new ArrayList<String>();
         StringTokenizer paramtokens = this.tokenize(parameters, "&");
         while (paramtokens.hasMoreElements()) {
             parsedParams.add(paramtokens.nextToken());



Mime
View raw message