Skip to content

Commit 5f87f09

Browse files
committedDec 6, 2020
Remove jdk 1.7 specific method, as we're still on jdk 1.6
1 parent 322c4d9 commit 5f87f09

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/test/java/org/fusesource/jansi/EncodingTest.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import java.io.ByteArrayOutputStream;
1919
import java.io.PrintStream;
2020
import java.io.UnsupportedEncodingException;
21+
import java.nio.charset.Charset;
2122
import java.nio.charset.StandardCharsets;
2223
import java.util.concurrent.atomic.AtomicReference;
2324

@@ -40,7 +41,7 @@ public void testEncoding8859() throws UnsupportedEncodingException {
4041
protected void processChangeWindowTitle(String label) {
4142
newLabel.set(label);
4243
}
43-
}, AnsiProcessorType.Emulation, StandardCharsets.ISO_8859_1, null, null, false), true, "ISO-8859-1");
44+
}, AnsiProcessorType.Emulation, Charset.forName("ISO-8859-1"), null, null, false), true, "ISO-8859-1");
4445

4546
ansi.print("\033]0;un bon café\007");
4647
ansi.flush();
@@ -56,7 +57,7 @@ public void testEncodingUtf8() throws UnsupportedEncodingException {
5657
protected void processChangeWindowTitle(String label) {
5758
newLabel.set(label);
5859
}
59-
}, AnsiProcessorType.Emulation, StandardCharsets.UTF_8, null, null, false), true, "UTF-8");
60+
}, AnsiProcessorType.Emulation, Charset.forName("UTF-8"), null, null, false), true, "UTF-8");
6061

6162
ansi.print("\033]0;ひらがな\007");
6263
ansi.flush();

0 commit comments

Comments
 (0)
Please sign in to comment.