Update JDK 11
This commit is contained in:
parent
82d1a1b826
commit
e1cf108ab2
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user