Browse Source

update test document

1
bugfix
jipengfei-jpf 6 years ago committed by GitHub
parent
commit
3498be8846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/test/java/com/alibaba/easyexcel/test/listen/ExcelListener.java

5
src/test/java/com/alibaba/easyexcel/test/listen/ExcelListener.java

@ -14,9 +14,8 @@ public class ExcelListener extends AnalysisEventListener {
@Override @Override
public void invoke(Object object, AnalysisContext context) { public void invoke(Object object, AnalysisContext context) {
System.out.println(context.getCurrentSheet()); System.out.println(context.getCurrentSheet());
if(data.size()<=100){ data.add(object);
data.add(object); if(data.size()>=100){
}else {
doSomething(); doSomething();
data = new ArrayList<Object>(); data = new ArrayList<Object>();
} }

Loading…
Cancel
Save