jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1859461 - /jmeter/trunk/src/components/org/apache/jmeter/visualizers/StatVisualizer.java
Date Sat, 18 May 2019 10:30:45 GMT
Author: fschumacher
Date: Sat May 18 10:30:45 2019
New Revision: 1859461

URL: http://svn.apache.org/viewvc?rev=1859461&view=rev
Log:
Use StandardsCharsets instead of looking up UTF-8 by String-value

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/StatVisualizer.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/StatVisualizer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/StatVisualizer.java?rev=1859461&r1=1859460&r2=1859461&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/StatVisualizer.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/StatVisualizer.java Sat May
18 10:30:45 2019
@@ -25,7 +25,7 @@ import java.awt.event.ActionListener;
 import java.io.FileOutputStream;
 import java.io.IOException;
 import java.io.OutputStreamWriter;
-import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
 import java.util.Deque;
 import java.util.Map;
 import java.util.concurrent.ConcurrentHashMap;
@@ -214,7 +214,7 @@ public class StatVisualizer extends Abst
                 return;
             }
             try (FileOutputStream fo = new FileOutputStream(chooser.getSelectedFile());
-                    OutputStreamWriter writer = new OutputStreamWriter(fo, Charset.forName("UTF-8"))){
+                    OutputStreamWriter writer = new OutputStreamWriter(fo, StandardCharsets.UTF_8)){
                 CSVSaveService.saveCSVStats(
                         StatGraphVisualizer.getAllTableData(model, StatGraphVisualizer.getFormatters()),
writer,
                         saveHeaders.isSelected()



Mime
View raw message