Skip to content

Commit 2e10c3b

Browse files
authored
feat: add update.md (#153)
* feat: update pom.xml * refactor: refactor code style * refactor: Remove Redundant Validation in File Encryption Process * refactor: Remove Redundant Validation in File Encryption Process * refactor: refactor code-style * fix: fix typo by @tanpenggood in 3432 * bug: fix Mismatch Between Error Messages and Actual Issues by @jackfanwan in 3383 * feat: add update.md * feat: add update.md
1 parent 048cc93 commit 2e10c3b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

fastexcel-core/src/main/java/cn/idev/excel/support/ExcelTypeEnum.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
import cn.idev.excel.exception.ExcelCommonException;
1010
import cn.idev.excel.read.metadata.ReadWorkbook;
1111
import cn.idev.excel.util.StringUtils;
12-
1312
import lombok.Getter;
13+
import org.apache.poi.EmptyFileException;
1414
import org.apache.poi.util.IOUtils;
1515

1616
/**
@@ -87,6 +87,8 @@ public static ExcelTypeEnum valueOf(ReadWorkbook readWorkbook) {
8787
return recognitionExcelType(inputStream);
8888
} catch (ExcelCommonException e) {
8989
throw e;
90+
} catch (EmptyFileException e) {
91+
throw new ExcelCommonException("The supplied file was empty (zero bytes long)");
9092
} catch (Exception e) {
9193
throw new ExcelCommonException(
9294
"Convert excel format exception.You can try specifying the 'excelType' yourself", e);

update.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# 1.1.0
2+
此次升级主要修复历史 BUG,同时剔除了部分依赖库,保证 `MIT` 协议下的使用。
3+
4+
具体更新内容如下:
5+
- 【改进】移除 `itext` 依赖库,将 `转换PDF` 功能迁移至新项目;
6+
- 【修复】fill填充空数据,可能导致行数据错乱的问题;
7+
- 【修复】打印CSV文件的 `hashcode`,可能会产生的堆栈溢出问题;
8+
- 【优化】增加报错内容详细信息;
9+
- 【优化】更新代码格式和部分错别字。

0 commit comments

Comments
 (0)