Standard Charset object used; other warnings fixed

This commit is contained in:
Tagir Valeev
2018-10-08 15:09:10 +07:00
parent 7e155e71f2
commit 6de5e9717c

View File

@@ -172,7 +172,7 @@ public class ConsoleDecompiler implements IBytecodeProvider, IResultSaver {
@Override
public void saveClassFile(String path, String qualifiedName, String entryName, String content, int[] mapping) {
File file = new File(getAbsolutePath(path), entryName);
try (Writer out = new OutputStreamWriter(new FileOutputStream(file), "UTF8")) {
try (Writer out = new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8)) {
out.write(content);
}
catch (IOException ex) {