mirror of
https://github.com/chillzhuang/blade-tool
synced 2024-11-05 10:09:32 +08:00
🐛 修复 kv clone。
This commit is contained in:
parent
2c966c6da4
commit
b02311fad3
@ -30,9 +30,8 @@ import java.util.HashMap;
|
|||||||
*/
|
*/
|
||||||
public class Kv extends LinkedCaseInsensitiveMap<Object> {
|
public class Kv extends LinkedCaseInsensitiveMap<Object> {
|
||||||
|
|
||||||
|
|
||||||
private Kv() {
|
private Kv() {
|
||||||
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -44,8 +43,8 @@ public class Kv extends LinkedCaseInsensitiveMap<Object> {
|
|||||||
return new Kv();
|
return new Kv();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static HashMap newMap() {
|
public static <K, V> HashMap<K, V> newMap() {
|
||||||
return new HashMap(16);
|
return new HashMap<>(16);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -198,7 +197,9 @@ public class Kv extends LinkedCaseInsensitiveMap<Object> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Kv clone() {
|
public Kv clone() {
|
||||||
return (Kv) super.clone();
|
Kv clone = new Kv();
|
||||||
|
clone.putAll(this);
|
||||||
|
return clone;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user