From 3498be884628094c9c73c0c71922731bce5b28f4 Mon Sep 17 00:00:00 2001 From: jipengfei-jpf <1558143046@qq.com> Date: Mon, 17 Dec 2018 18:58:01 +0800 Subject: [PATCH] update test document 1 --- .../com/alibaba/easyexcel/test/listen/ExcelListener.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/test/java/com/alibaba/easyexcel/test/listen/ExcelListener.java b/src/test/java/com/alibaba/easyexcel/test/listen/ExcelListener.java index fd185afd..0f17a391 100644 --- a/src/test/java/com/alibaba/easyexcel/test/listen/ExcelListener.java +++ b/src/test/java/com/alibaba/easyexcel/test/listen/ExcelListener.java @@ -14,9 +14,8 @@ public class ExcelListener extends AnalysisEventListener { @Override public void invoke(Object object, AnalysisContext context) { System.out.println(context.getCurrentSheet()); - if(data.size()<=100){ - data.add(object); - }else { + data.add(object); + if(data.size()>=100){ doSomething(); data = new ArrayList(); }