diff --git a/blade-core-tool/src/main/java/org/springblade/core/tool/support/Kv.java b/blade-core-tool/src/main/java/org/springblade/core/tool/support/Kv.java index 819e250..cbd6a53 100644 --- a/blade-core-tool/src/main/java/org/springblade/core/tool/support/Kv.java +++ b/blade-core-tool/src/main/java/org/springblade/core/tool/support/Kv.java @@ -30,9 +30,8 @@ import java.util.HashMap; */ public class Kv extends LinkedCaseInsensitiveMap { - private Kv() { - + super(); } /** @@ -44,8 +43,8 @@ public class Kv extends LinkedCaseInsensitiveMap { return new Kv(); } - public static HashMap newMap() { - return new HashMap(16); + public static HashMap newMap() { + return new HashMap<>(16); } /** @@ -198,7 +197,9 @@ public class Kv extends LinkedCaseInsensitiveMap { @Override public Kv clone() { - return (Kv) super.clone(); + Kv clone = new Kv(); + clone.putAll(this); + return clone; } }