mirror of
https://gitee.com/dromara/hutool.git
synced 2025-07-16 16:50:45 +08:00
fix method
This commit is contained in:
parent
44de4c37dc
commit
510ec621a2
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
# 5.6.6 (2021-05-17)
|
# 5.6.6 (2021-05-18)
|
||||||
|
|
||||||
### 🐣新特性
|
### 🐣新特性
|
||||||
* 【cron 】 增加时间轮简单实现
|
* 【cron 】 增加时间轮简单实现
|
||||||
@ -12,6 +12,7 @@
|
|||||||
* 【cache 】 CacheObj默认方法改为protected(issue#I3RIEI@Gitee)
|
* 【cache 】 CacheObj默认方法改为protected(issue#I3RIEI@Gitee)
|
||||||
|
|
||||||
### 🐞Bug修复
|
### 🐞Bug修复
|
||||||
|
* 【core 】 修复XmlUtil中omitXmlDeclaration参数无效问题(issue#1581@Github)
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
# 5.6.5 (2021-05-08)
|
# 5.6.5 (2021-05-08)
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user