From dad1790b95ea778ca40b0307234dafc7632dc5c8 Mon Sep 17 00:00:00 2001 From: Looly Date: Fri, 26 May 2023 10:32:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DMapRowHandler=E7=BB=93?= =?UTF-8?q?=E6=9E=9CMap=E6=97=A0=E5=BA=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 ++- .../java/cn/hutool/poi/excel/sax/handler/MapRowHandler.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d0ed9c597..7facae12be 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ # 🚀Changelog ------------------------------------------------------------------------------------------------------------- -# 5.8.19.M1 (2023-05-25) +# 5.8.19.M1 (2023-05-26) ### 🐣新特性 * 【db 】 优化HttpRequest.toString()内容打印(issue#3072@Github) @@ -30,6 +30,7 @@ * 【core 】 修复FileUtil.createTempFile可能导致的漏洞(issue#3103@Github) * 【cron 】 修复SystemTimer无法结束进程问题(issue#3090@Github) * 【core 】 修复BeanUtil.copyToList复制Long等类型错误问题(issue#3091@Github) +* 【poi 】 修复MapRowHandler结果Map无序问题(issue#I71SE8@Github) ------------------------------------------------------------------------------------------------------------- # 5.8.18 (2023-04-27) diff --git a/hutool-poi/src/main/java/cn/hutool/poi/excel/sax/handler/MapRowHandler.java b/hutool-poi/src/main/java/cn/hutool/poi/excel/sax/handler/MapRowHandler.java index a4c53dc0f2..94996edfee 100644 --- a/hutool-poi/src/main/java/cn/hutool/poi/excel/sax/handler/MapRowHandler.java +++ b/hutool-poi/src/main/java/cn/hutool/poi/excel/sax/handler/MapRowHandler.java @@ -35,7 +35,7 @@ public abstract class MapRowHandler extends AbstractRowHandler IterUtil.toMap(headerList, rowList); + this.convertFunc = (rowList)-> IterUtil.toMap(headerList, rowList, true); } @Override