mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
修改Codacy问题
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user