mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
fix code
This commit is contained in:
parent
3bbfce95ac
commit
604f84595e
@ -2,7 +2,7 @@
|
||||
# 🚀Changelog
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
# 5.7.23 (2022-03-15)
|
||||
# 5.7.23 (2022-03-16)
|
||||
|
||||
### 🐣新特性
|
||||
* 【http 】 HttpRequest.form采用TableMap方式(issue#I4W427@Gitee)
|
||||
@ -15,6 +15,8 @@
|
||||
* 【core 】 ArrayUtil增加replace方法(pr#570@Gitee)
|
||||
* 【core 】 CsvReadConfig增加自定义标题行行号(issue#2180@Github)
|
||||
* 【db 】 增加MongoDB4.x支持(pr#568@Gitee)
|
||||
* 【core 】 FileAppender优化初始List大小(pr#2197@Github)
|
||||
* 【core 】 Base32增加pad支持(pr#2195@Github)
|
||||
*
|
||||
### 🐞Bug修复
|
||||
* 【core 】 修复ObjectUtil.hasNull传入null返回true的问题(pr#555@Gitee)
|
||||
|
@ -26,7 +26,8 @@ public class FileAppender implements Serializable{
|
||||
private final int capacity;
|
||||
/** 追加内容是否为新行 */
|
||||
private final boolean isNewLineMode;
|
||||
private final List<String> list = new ArrayList<>(100);
|
||||
/** 数据行缓存 */
|
||||
private final List<String> list;
|
||||
|
||||
/**
|
||||
* 构造
|
||||
@ -49,6 +50,7 @@ public class FileAppender implements Serializable{
|
||||
*/
|
||||
public FileAppender(File destFile, Charset charset, int capacity, boolean isNewLineMode) {
|
||||
this.capacity = capacity;
|
||||
this.list = new ArrayList<>(capacity);
|
||||
this.isNewLineMode = isNewLineMode;
|
||||
this.writer = FileWriter.create(destFile, charset);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user