Skip to content

Commit

Permalink
Remove jdk 1.7 specific method, as we're still on jdk 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Dec 6, 2020
1 parent 322c4d9 commit 5f87f09
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/java/org/fusesource/jansi/EncodingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.concurrent.atomic.AtomicReference;

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

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

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

0 comments on commit 5f87f09

Please sign in to comment.