aboutsummaryrefslogtreecommitdiffstats
path: root/src/integrationtest/org/apache/poi/stress/HPSFFileHandler.java
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2017-12-19 00:23:52 +0000
committerPJ Fanning <fanningpj@apache.org>2017-12-19 00:23:52 +0000
commit819eac1f82887c09acfa8be05fbe633acddc052b (patch)
tree27870acb2795e1664a74a9abffa3dce9552dbf91 /src/integrationtest/org/apache/poi/stress/HPSFFileHandler.java
parent2a63c7e75ddf7fdaf68a0dfa2d3d7a959576cbb2 (diff)
downloadpoi-819eac1f82887c09acfa8be05fbe633acddc052b.tar.gz
poi-819eac1f82887c09acfa8be05fbe633acddc052b.zip
use StandardCharsets
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1818628 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/integrationtest/org/apache/poi/stress/HPSFFileHandler.java')
-rw-r--r--src/integrationtest/org/apache/poi/stress/HPSFFileHandler.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/integrationtest/org/apache/poi/stress/HPSFFileHandler.java b/src/integrationtest/org/apache/poi/stress/HPSFFileHandler.java
index e348d964e0..cf0ebd0943 100644
--- a/src/integrationtest/org/apache/poi/stress/HPSFFileHandler.java
+++ b/src/integrationtest/org/apache/poi/stress/HPSFFileHandler.java
@@ -24,7 +24,7 @@ import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintStream;
-import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
@@ -110,7 +110,7 @@ public class HPSFFileHandler extends POIFSFileHandler {
try {
System.setOut(psNew);
CopyCompare.main(new String[]{file.getAbsolutePath(), copyOutput.getAbsolutePath()});
- assertEquals("Equal" + NL, new String(bos.toByteArray(), Charset.forName("UTF-8")));
+ assertEquals("Equal" + NL, new String(bos.toByteArray(), StandardCharsets.UTF_8));
} finally {
System.setOut(ps);
}