mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-08-18 20:38:02 +08:00
将多层级Map处理为一个层级Map类型
This commit is contained in:
@@ -1577,7 +1577,7 @@ public class MapUtil {
|
|||||||
public static <K, V> Map<K, V> flatten(Map<K, V> map) {
|
public static <K, V> Map<K, V> flatten(Map<K, V> map) {
|
||||||
Assert.notNull(map);
|
Assert.notNull(map);
|
||||||
Map<K, V> flatMap = new HashMap<>();
|
Map<K, V> flatMap = new HashMap<>();
|
||||||
flatten(map, flatMap);
|
flatten(map, flatMap);
|
||||||
return flatMap;
|
return flatMap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user