From 98af280dad9af435707973c0b63bf04de6d0d49b Mon Sep 17 00:00:00 2001 From: Looly Date: Thu, 3 Sep 2020 17:43:07 +0800 Subject: [PATCH] add method --- CHANGELOG.md | 3 ++- hutool-poi/src/main/java/cn/hutool/poi/excel/RowUtil.java | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0087c8311..a025b72e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ------------------------------------------------------------------------------------------------------------- -# 5.4.2 (2020-09-02) +# 5.4.2 (2020-09-03) ### 新特性 * 【core 】 lock放在try外边(pr#1050@Github) @@ -11,6 +11,7 @@ * 【core 】 JschUtil添加远程转发功能(pr#171@Gitee) * 【db 】 AbstractDb增加executeBatch重载(issue#1053@Github) * 【extra 】 新增方便引入SpringUtil的注解@EnableSpringUtil(pr#172@Gitee) +* 【poi 】 RowUtil增加插入和删除行(pr#1060@Github) ### Bug修复# * 【core 】 重新整理农历节假日,解决一个pr过来的玩笑导致的问题 diff --git a/hutool-poi/src/main/java/cn/hutool/poi/excel/RowUtil.java b/hutool-poi/src/main/java/cn/hutool/poi/excel/RowUtil.java index f6c44c6bd..c7a9f0d94 100644 --- a/hutool-poi/src/main/java/cn/hutool/poi/excel/RowUtil.java +++ b/hutool-poi/src/main/java/cn/hutool/poi/excel/RowUtil.java @@ -109,6 +109,7 @@ public class RowUtil { * @param sheet 工作表 * @param startRow 插入的起始行 * @param insertNumber 插入的行数 + * @since 5.4.2 */ public static void insertRow(Sheet sheet, int startRow, int insertNumber) { if (insertNumber <= 0) { @@ -136,6 +137,7 @@ public class RowUtil { * * @param row 需要删除的行 * @see sheet.shiftRows的bug + * @since 5.4.2 */ public static void removeRow(Row row) { if (row == null) {