mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
HashMap应指定初始长度
This commit is contained in:
parent
8e0a5e2029
commit
c8743914f1
@ -179,7 +179,7 @@ public class CollStreamUtil {
|
||||
Set<K> key = new HashSet<>();
|
||||
key.addAll(map1.keySet());
|
||||
key.addAll(map2.keySet());
|
||||
Map<K, V> map = new HashMap<>();
|
||||
Map<K, V> map = MapUtil.newHashMap(key.size());
|
||||
for (K t : key) {
|
||||
X x = map1.get(t);
|
||||
Y y = map2.get(t);
|
||||
|
Loading…
x
Reference in New Issue
Block a user