fix method

This commit is contained in:
Looly 2021-05-18 10:57:36 +08:00
parent 44de4c37dc
commit 510ec621a2
2 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,7 @@
------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------
# 5.6.6 (2021-05-17) # 5.6.6 (2021-05-18)
### 🐣新特性 ### 🐣新特性
* 【cron 】 增加时间轮简单实现 * 【cron 】 增加时间轮简单实现
@ -12,6 +12,7 @@
* 【cache 】 CacheObj默认方法改为protectedissue#I3RIEI@Gitee * 【cache 】 CacheObj默认方法改为protectedissue#I3RIEI@Gitee
### 🐞Bug修复 ### 🐞Bug修复
* 【core 】 修复XmlUtil中omitXmlDeclaration参数无效问题issue#1581@Github
------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------
# 5.6.5 (2021-05-08) # 5.6.5 (2021-05-08)

View File

@ -1185,7 +1185,7 @@ public class XmlUtil {
* @since 5.1.2 * @since 5.1.2
*/ */
public static String mapToXmlStr(Map<?, ?> data, String rootName, String namespace, boolean isPretty, boolean omitXmlDeclaration) { public static String mapToXmlStr(Map<?, ?> data, String rootName, String namespace, boolean isPretty, boolean omitXmlDeclaration) {
return toStr(mapToXml(data, rootName, namespace), CharsetUtil.UTF_8, isPretty); return toStr(mapToXml(data, rootName, namespace), CharsetUtil.UTF_8, isPretty, omitXmlDeclaration);
} }
/** /**