From 11b854acb39af4406ef4b95e1fe42ff075289cda Mon Sep 17 00:00:00 2001 From: hellozrh <455741807@qq.com> Date: Mon, 5 Jun 2023 09:42:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E6=8E=89=E5=A4=9A=E4=BD=99=E7=9A=84?= =?UTF-8?q?=E7=A9=BA=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hutool-core/src/main/java/cn/hutool/core/io/file/FileWriter.java | 1 - 1 file changed, 1 deletion(-) diff --git a/hutool-core/src/main/java/cn/hutool/core/io/file/FileWriter.java b/hutool-core/src/main/java/cn/hutool/core/io/file/FileWriter.java index 398c26707..f07fbd0ad 100644 --- a/hutool-core/src/main/java/cn/hutool/core/io/file/FileWriter.java +++ b/hutool-core/src/main/java/cn/hutool/core/io/file/FileWriter.java @@ -376,7 +376,6 @@ public class FileWriter extends FileWrapper { */ public BufferedWriter getWriter(boolean isAppend) throws IORuntimeException { try { - return new BufferedWriter(new OutputStreamWriter(new FileOutputStream(FileUtil.touch(file), isAppend), charset)); } catch (Exception e) { throw new IORuntimeException(e);