Looly 5 年 前
コミット
98af280dad
2 ファイル変更4 行追加1 行削除
  1. 2 1
      CHANGELOG.md
  2. 2 0
      hutool-poi/src/main/java/cn/hutool/poi/excel/RowUtil.java

+ 2 - 1
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过来的玩笑导致的问题

+ 2 - 0
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 <a href="https://bz.apache.org/bugzilla/show_bug.cgi?id=56454">sheet.shiftRows的bug</a>
+	 * @since 5.4.2
 	 */
 	public static void removeRow(Row row) {
 		if (row == null) {