diff --git a/src/main/java/com/alibaba/excel/read/listener/PageReadListener.java b/src/main/java/com/alibaba/excel/read/listener/PageReadListener.java index a459818d..5ce3adf8 100644 --- a/src/main/java/com/alibaba/excel/read/listener/PageReadListener.java +++ b/src/main/java/com/alibaba/excel/read/listener/PageReadListener.java @@ -15,7 +15,7 @@ public class PageReadListener implements ReadListener { /** * Single handle the amount of data */ - public static final int BATCH_COUNT = 3000; + public static int BATCH_COUNT = 3000; /** * Temporary storage of data */ @@ -34,7 +34,6 @@ public class PageReadListener implements ReadListener { cachedData.add(data); if (cachedData.size() >= BATCH_COUNT) { consumer.accept(cachedData); - // 存储完成清理 list cachedData = ListUtils.newArrayListWithExpectedSize(BATCH_COUNT); } }