From 7f612f24f8d7c459fe6515ee798fb6d2da74a17f Mon Sep 17 00:00:00 2001 From: Jiaju Zhuang Date: Fri, 28 Oct 2022 20:56:23 +0800 Subject: [PATCH] =?UTF-8?q?*=20=E4=BF=AE=E5=A4=8D=E9=95=BF=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E8=BF=90=E8=A1=8C=E4=BC=9A=E4=BA=A7=E7=94=9F=E5=A4=A7?= =?UTF-8?q?=E5=AF=B9=E8=B1=A1=E7=9A=84bug=20[Issue=20#2725](https://github?= =?UTF-8?q?.com/alibaba/easyexcel/issues/2725)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/alibaba/excel/util/FileUtils.java | 3 --- pom.xml | 2 +- update.md | 3 +++ 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/easyexcel-core/src/main/java/com/alibaba/excel/util/FileUtils.java b/easyexcel-core/src/main/java/com/alibaba/excel/util/FileUtils.java index 41a4be0e..bd2d340c 100644 --- a/easyexcel-core/src/main/java/com/alibaba/excel/util/FileUtils.java +++ b/easyexcel-core/src/main/java/com/alibaba/excel/util/FileUtils.java @@ -58,11 +58,9 @@ public class FileUtils { // Create a temporary directory in advance File tempFile = new File(tempFilePrefix); createDirectory(tempFile); - tempFile.deleteOnExit(); // Initialize the cache directory File cacheFile = new File(cachePath); createDirectory(cacheFile); - cacheFile.deleteOnExit(); } /** @@ -160,7 +158,6 @@ public class FileUtils { File poiFilesPathFile = new File(poiFilesPath); createDirectory(poiFilesPathFile); TempFile.setTempFileCreationStrategy(new DefaultTempFileCreationStrategy(poiFilesPathFile)); - poiFilesPathFile.deleteOnExit(); } public static File createCacheTmpFile() { diff --git a/pom.xml b/pom.xml index d8676d5c..319a85e0 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ - 3.1.1 + 3.1.2 UTF-8 1.8 true diff --git a/update.md b/update.md index 6944a0ee..b326ca07 100644 --- a/update.md +++ b/update.md @@ -1,3 +1,6 @@ +# 3.1.2 +* 修复长时间运行会产生大对象的bug [Issue #2725](https://github.com/alibaba/easyexcel/issues/2725) + # 3.1.1 * 修复部分xlsx无法读取超链接的bug