From 6de5e9717c2cc8398c115ba3583e0b5c8ea50421 Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Mon, 8 Oct 2018 15:09:10 +0700 Subject: [PATCH] Standard Charset object used; other warnings fixed --- .../java/decompiler/main/decompiler/ConsoleDecompiler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/jetbrains/java/decompiler/main/decompiler/ConsoleDecompiler.java b/src/org/jetbrains/java/decompiler/main/decompiler/ConsoleDecompiler.java index 47609fa..684249e 100644 --- a/src/org/jetbrains/java/decompiler/main/decompiler/ConsoleDecompiler.java +++ b/src/org/jetbrains/java/decompiler/main/decompiler/ConsoleDecompiler.java @@ -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) {