From c53b77924d9d03ea470b9bc64ead311d3c5dbd75 Mon Sep 17 00:00:00 2001 From: looly Date: Tue, 7 Dec 2021 17:13:01 +0800 Subject: [PATCH] fix bug --- CHANGELOG.md | 5 +++-- .../src/main/java/cn/hutool/poi/excel/style/StyleUtil.java | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 44cb158c9..b6e2f24df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ------------------------------------------------------------------------------------------------------------- -# 5.7.17 (2021-12-06) +# 5.7.17 (2021-12-07) ### 🐣新特性 * 【core 】 增加AsyncUtil(pr#457@Gitee) @@ -43,10 +43,11 @@ * 【poi 】 修复SoapClient参数未使用问题 * 【core 】 修复HashUtil.cityHash128参数未使用问题 * 【core 】 修复DateUtil.formatChineseDate显示问题(issue#I4KK5F@Gitee) -* 【poi 】 修复CellUtil.setCellValuestyle空导致值无法写入问题(issue#1995@Github) +* 【poi 】 修复CellUtil.setCellValueStyle空导致值无法写入问题(issue#1995@Github) * 【poi 】 修复CellUtil.setComment参数设置错误问题 * 【core 】 修复QueryBuilder解析路径导致的错误(issue#1989@Github) * 【core 】 修复DateTime.between中DateUnit无效问题 +* 【poi 】 修复StyleUtil.getFormat非static问题(issue#I4LGNP@Gitee) ------------------------------------------------------------------------------------------------------------- diff --git a/hutool-poi/src/main/java/cn/hutool/poi/excel/style/StyleUtil.java b/hutool-poi/src/main/java/cn/hutool/poi/excel/style/StyleUtil.java index 538f646af..ecb57261f 100644 --- a/hutool-poi/src/main/java/cn/hutool/poi/excel/style/StyleUtil.java +++ b/hutool-poi/src/main/java/cn/hutool/poi/excel/style/StyleUtil.java @@ -211,7 +211,7 @@ public class StyleUtil { * @return 数据格式 * @since 5.5.5 */ - public Short getFormat(Workbook workbook, String format) { + public static Short getFormat(Workbook workbook, String format) { final DataFormat dataFormat = workbook.createDataFormat(); return dataFormat.getFormat(format); }