Skip to content

Commit dad1790

Browse files
committed
修复MapRowHandler结果Map无序问题
1 parent 2e88e74 commit dad1790

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# 🚀Changelog
33

44
-------------------------------------------------------------------------------------------------------------
5-
# 5.8.19.M1 (2023-05-25)
5+
# 5.8.19.M1 (2023-05-26)
66

77
### 🐣新特性
88
* 【db 】 优化HttpRequest.toString()内容打印(issue#3072@Github)
@@ -30,6 +30,7 @@
3030
* 【core 】 修复FileUtil.createTempFile可能导致的漏洞(issue#3103@Github)
3131
* 【cron 】 修复SystemTimer无法结束进程问题(issue#3090@Github)
3232
* 【core 】 修复BeanUtil.copyToList复制Long等类型错误问题(issue#3091@Github)
33+
* 【poi 】 修复MapRowHandler结果Map无序问题(issue#I71SE8@Github)
3334

3435
-------------------------------------------------------------------------------------------------------------
3536
# 5.8.18 (2023-04-27)

hutool-poi/src/main/java/cn/hutool/poi/excel/sax/handler/MapRowHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public abstract class MapRowHandler extends AbstractRowHandler<Map<String, Objec
3535
public MapRowHandler(int headerRowIndex, int startRowIndex, int endRowIndex){
3636
super(startRowIndex, endRowIndex);
3737
this.headerRowIndex = headerRowIndex;
38-
this.convertFunc = (rowList)-> IterUtil.toMap(headerList, rowList);
38+
this.convertFunc = (rowList)-> IterUtil.toMap(headerList, rowList, true);
3939
}
4040

4141
@Override

0 commit comments

Comments
 (0)