From e1cf108ab24c8372f197e1ebe434ae1c472df5de Mon Sep 17 00:00:00 2001 From: sky Date: Mon, 3 Feb 2020 18:41:27 +0800 Subject: [PATCH] Update JDK 11 --- src/main/scala/io/izzel/taboolib/util/Files.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/io/izzel/taboolib/util/Files.java b/src/main/scala/io/izzel/taboolib/util/Files.java index e014b8e..035f5b7 100644 --- a/src/main/scala/io/izzel/taboolib/util/Files.java +++ b/src/main/scala/io/izzel/taboolib/util/Files.java @@ -319,8 +319,8 @@ public class Files { } } - public static void write(File file, WriteHandle writeHandle, boolean append) { - try (FileWriter fileWriter = new FileWriter(file, append); BufferedWriter bufferedWriter = new BufferedWriter(fileWriter)) { + public static void writeAppend(File file, WriteHandle writeHandle) { + try (FileWriter fileWriter = new FileWriter(file, true); BufferedWriter bufferedWriter = new BufferedWriter(fileWriter)) { writeHandle.write(bufferedWriter); bufferedWriter.flush(); } catch (Throwable t) {