mirror of
https://gitee.com/dromara/hutool.git
synced 2026-02-09 09:16:26 +08:00
AppendableWriter增加checkNotClosed(issue#IDMZ5K@Gitee)
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
* 【captcha】 `AbstractCaptcha`增加`setStroke`方法支持线条粗细(issue#IDJQ15@Gitee)
|
||||
* 【core 】 `BooleanUtil`新增 exactlyOneTrue 方法用于互斥条件校验(issue#IDJQ15@Gitee)
|
||||
* 【core 】 `DateUtil.normalize`方法中正则预编译提升效率(pr#4221@Gitee)
|
||||
* 【core 】 `AppendableWriter`增加checkNotClosed(issue#IDMZ5K@Gitee)
|
||||
|
||||
### 🐞Bug修复
|
||||
* 【json 】 修复`JSONUtil.wrap`忽略错误问题(issue#4210@Github)
|
||||
|
||||
@@ -66,11 +66,13 @@ public class AppendableWriter extends Writer implements Appendable {
|
||||
|
||||
@Override
|
||||
public void write(final String str) throws IOException {
|
||||
checkNotClosed();
|
||||
appendable.append(str);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(final char[] cbuf) throws IOException {
|
||||
checkNotClosed();
|
||||
appendable.append(CharBuffer.wrap(cbuf));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user