From 384a8a39910eeabff07a5574c45e0868a2753d99 Mon Sep 17 00:00:00 2001 From: Redkale <8730487+redkale@users.noreply.github.com> Date: Fri, 17 Jul 2020 16:57:41 +0800 Subject: [PATCH] --- src/org/redkale/util/Utility.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++) {