Update JDK 11

This commit is contained in:
sky 2020-02-03 18:41:27 +08:00
parent 82d1a1b826
commit e1cf108ab2

View File

@ -319,8 +319,8 @@ public class Files {
} }
} }
public static void write(File file, WriteHandle writeHandle, boolean append) { public static void writeAppend(File file, WriteHandle writeHandle) {
try (FileWriter fileWriter = new FileWriter(file, append); BufferedWriter bufferedWriter = new BufferedWriter(fileWriter)) { try (FileWriter fileWriter = new FileWriter(file, true); BufferedWriter bufferedWriter = new BufferedWriter(fileWriter)) {
writeHandle.write(bufferedWriter); writeHandle.write(bufferedWriter);
bufferedWriter.flush(); bufferedWriter.flush();
} catch (Throwable t) { } catch (Throwable t) {