jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1380857 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HttpMirrorThread.java
Date Tue, 04 Sep 2012 20:26:28 GMT
Author: pmouawad
Date: Tue Sep  4 20:26:28 2012
New Revision: 1380857

URL: http://svn.apache.org/viewvc?rev=1380857&view=rev
Log:
Use parse instead of useless Wrappers

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HttpMirrorThread.java

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HttpMirrorThread.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HttpMirrorThread.java?rev=1380857&r1=1380856&r2=1380857&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HttpMirrorThread.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HttpMirrorThread.java
Tue Sep  4 20:26:28 2012
@@ -107,7 +107,7 @@ public class HttpMirrorThread implements
             // Check if we have found a content-length header
             String contentLengthHeaderValue = getRequestHeaderValue(headerString, "Content-Length");
//$NON-NLS-1$
             if(contentLengthHeaderValue != null) {
-                contentLength = Integer.valueOf(contentLengthHeaderValue).intValue();
+                contentLength = Integer.parseInt(contentLengthHeaderValue);
             }
             // Look for special Sleep request
             String sleepHeaderValue = getRequestHeaderValue(headerString, "X-Sleep"); //$NON-NLS-1$



Mime
View raw message