jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1749208 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HttpMirrorThread.java
Date Sun, 19 Jun 2016 21:24:26 GMT
Author: sebb
Date: Sun Jun 19 21:24:26 2016
New Revision: 1749208

URL: http://svn.apache.org/viewvc?rev=1749208&view=rev
Log:
 Use StandardCharsets when possible
 Might as well use the Charset directly
Bugzilla Id: 59722

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=1749208&r1=1749207&r2=1749208&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
Sun Jun 19 21:24:26 2016
@@ -25,6 +25,7 @@ import java.io.IOException;
 import java.net.Socket;
 import java.net.URI;
 import java.net.URISyntaxException;
+import java.nio.charset.Charset;
 import java.nio.charset.StandardCharsets;
 import java.util.HashMap;
 import java.util.concurrent.TimeUnit;
@@ -58,7 +59,8 @@ import org.apache.oro.text.regex.Perl5Ma
 public class HttpMirrorThread implements Runnable {
     private static final Logger log = LoggingManager.getLoggerForClass();
 
-    private static final String ISO_8859_1 = StandardCharsets.ISO_8859_1.name();
+    private static final Charset ISO_8859_1 = StandardCharsets.ISO_8859_1;
+
     private static final byte[] CRLF = { 0x0d, 0x0a };
 
     private static final String REDIRECT = "redirect"; //$NON-NLS-1$



Mime
View raw message