Use StandardCharsets
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / java / org / opendaylight / yangtools / yang / stmt / SubstatementValidatorTest.java
index d2baf198e76924f285bf438f931f890e6a06ba1e..be3cc46eaea1471ce95f0160069f530f0d714ff2 100644 (file)
@@ -16,6 +16,7 @@ import static org.junit.Assert.fail;
 import java.io.ByteArrayOutputStream;
 import java.io.PrintStream;
 import java.io.UnsupportedEncodingException;
+import java.nio.charset.StandardCharsets;
 import java.util.Collection;
 import org.junit.After;
 import org.junit.Before;
@@ -31,7 +32,7 @@ public class SubstatementValidatorTest {
 
     @Before
     public void setUp() throws UnsupportedEncodingException {
-        System.setOut(new PrintStream(output, true, "UTF-8"));
+        System.setOut(new PrintStream(output, true, StandardCharsets.UTF_8));
     }
 
     @After