mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-04 12:47:59 +08:00
修改Codacy问题
This commit is contained in:
parent
a65cd34ba8
commit
018b67a066
@ -961,8 +961,8 @@ public class MapUtil {
|
|||||||
* @return ConcurrentHashMap
|
* @return ConcurrentHashMap
|
||||||
*/
|
*/
|
||||||
public static <K, V> ConcurrentHashMap<K, V> newConcurrentHashMapWithSize(int size) {
|
public static <K, V> ConcurrentHashMap<K, V> newConcurrentHashMapWithSize(int size) {
|
||||||
size = size <= 0 ? DEFAULT_INITIAL_CAPACITY : size;
|
int initCapacity = size <= 0 ? DEFAULT_INITIAL_CAPACITY : size;
|
||||||
return new ConcurrentHashMap<>(size);
|
return new ConcurrentHashMap<>(initCapacity);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user