From 4f90b2a1890902069f5ea92d87387b754b6dcaab Mon Sep 17 00:00:00 2001 From: Looly Date: Fri, 27 Sep 2019 21:17:17 +0800 Subject: [PATCH] fix sax read --- .../src/main/java/cn/hutool/poi/excel/sax/Excel03SaxReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hutool-poi/src/main/java/cn/hutool/poi/excel/sax/Excel03SaxReader.java b/hutool-poi/src/main/java/cn/hutool/poi/excel/sax/Excel03SaxReader.java index 6dbb29fe4..5b9541f89 100644 --- a/hutool-poi/src/main/java/cn/hutool/poi/excel/sax/Excel03SaxReader.java +++ b/hutool-poi/src/main/java/cn/hutool/poi/excel/sax/Excel03SaxReader.java @@ -299,7 +299,7 @@ public class Excel03SaxReader extends AbstractExcelSaxReader i // 每行结束时, 调用handle() 方法 this.rowHandler.handle(curRid, lastCell.getRow(), this.rowCellList); // 清空行Cache - this.rowCellList.clear(); + this.rowCellList = new ArrayList<>(this.rowCellList.size()); } /**