mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-30 09:03:09 +00:00
Fixed Java 8 compatibility
This commit is contained in:
@@ -278,8 +278,7 @@ public class TomlConfigurationStorage implements ConfigurationStorage {
|
||||
if (modifiedOnly == null) {
|
||||
modifiedOnly = true;
|
||||
}
|
||||
try (
|
||||
Writer w = new FileWriter(file, Utf8Helper.charset); PrintWriter pw = new PrintWriter(w)) {
|
||||
try (PrintWriter pw = new PrintWriter(file, "UTF-8")) {
|
||||
String header = AppResources.translate("configurationFile").replace("%app%", ApplicationInfo.APPLICATION_NAME);
|
||||
String splitter = stringOfChar('-', header.length());
|
||||
pw.println("# " + splitter);
|
||||
|
||||
Reference in New Issue
Block a user