From fa9bd30de5b854af82a96f02886d03671d4071bd Mon Sep 17 00:00:00 2001 From: Redkale <22250530@qq.com> Date: Sat, 4 Feb 2017 15:01:39 +0800 Subject: [PATCH] --- src/org/redkale/util/Utility.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/org/redkale/util/Utility.java b/src/org/redkale/util/Utility.java index fe63c1590..2475f726c 100644 --- a/src/org/redkale/util/Utility.java +++ b/src/org/redkale/util/Utility.java @@ -94,11 +94,11 @@ public final class Utility { return map; } - public static HashMap asMap(Object... items) { - HashMap map = new HashMap<>(); + public static HashMap asMap(Object... items) { + HashMap map = new HashMap<>(); int len = items.length / 2; for (int i = 0; i < len; i++) { - map.put(String.valueOf(items[i * 2]), items[i * 2 + 1]); + map.put(items[i * 2], items[i * 2 + 1]); } return map; }