浏览代码

fix sax read

Looly 6 年之前
父节点
当前提交
4f90b2a189
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hutool-poi/src/main/java/cn/hutool/poi/excel/sax/Excel03SaxReader.java

+ 1 - 1
hutool-poi/src/main/java/cn/hutool/poi/excel/sax/Excel03SaxReader.java

@@ -299,7 +299,7 @@ public class Excel03SaxReader extends AbstractExcelSaxReader<Excel03SaxReader> i
 		// 每行结束时, 调用handle() 方法
 		// 每行结束时, 调用handle() 方法
 		this.rowHandler.handle(curRid, lastCell.getRow(), this.rowCellList);
 		this.rowHandler.handle(curRid, lastCell.getRow(), this.rowCellList);
 		// 清空行Cache
 		// 清空行Cache
-		this.rowCellList.clear();
+		this.rowCellList = new ArrayList<>(this.rowCellList.size());
 	}
 	}
 
 
 	/**
 	/**