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