diff --git a/src/org/redkale/util/Utility.java b/src/org/redkale/util/Utility.java index b524629c9..f8352cbbb 100644 --- a/src/org/redkale/util/Utility.java +++ b/src/org/redkale/util/Utility.java @@ -207,7 +207,7 @@ public final class Utility { * * @return Map */ - public static Map ofMap(String... items) { + public static HashMap ofMap(String... items) { HashMap map = new LinkedHashMap<>(Math.max(1, items.length / 2)); int len = items.length / 2; for (int i = 0; i < len; i++) { @@ -226,7 +226,7 @@ public final class Utility { * * @return Map */ - public static Map ofMap(Object... items) { + public static HashMap ofMap(Object... items) { HashMap map = new LinkedHashMap<>(Math.max(1, items.length / 2)); int len = items.length / 2; for (int i = 0; i < len; i++) {