From 7c0a8a4571a3d9e5830fba6a1671c751c02ae664 Mon Sep 17 00:00:00 2001 From: hellozrh <455741807@qq.com> Date: Wed, 18 Jan 2023 14:23:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=9A=E4=B8=AAsheet?= =?UTF-8?q?=E9=A1=B5=E6=97=B6=EF=BC=8CdoAfterAllAnalysed=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E6=AC=A1=E6=95=B0=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cn/hutool/poi/excel/sax/Excel03SaxReader.java | 9 +++------ .../src/test/java/cn/hutool/poi/excel/ExcelUtilTest.java | 7 ++----- 2 files changed, 5 insertions(+), 11 deletions(-) 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 31bbf8aeb..84fc2a51f 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 @@ -6,6 +6,7 @@ import cn.hutool.core.lang.Assert; import cn.hutool.core.util.ArrayUtil; import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.StrUtil; +import cn.hutool.log.StaticLog; import cn.hutool.poi.excel.sax.handler.RowHandler; import cn.hutool.poi.exceptions.POIException; import org.apache.poi.hssf.eventusermodel.EventWorkbookBuilder.SheetRecordCollectingListener; @@ -349,11 +350,8 @@ public class Excel03SaxReader implements HSSFListener, ExcelSaxReader(this.rowCellList.size()); } @@ -362,7 +360,6 @@ public class Excel03SaxReader implements HSSFListener, ExcelSaxReader rowCells) { System.out.println(StrUtil.format("sheetIndex={};rowIndex={},rowCells={}",sheetIndex,rowIndex,rowCells)); - assertRowNum.addAndGet(1); } }); }catch (Exception ex){ ex.printStackTrace(); } - //Assert.assertEquals(3, assertRowNum.intValue()); } }