ConcurrentHashMap key/value 不支持 null

put方法,key/value 如果为null  直接抛出异常。

get方法,key没有判断null  会报空指针异常

猜你喜欢

转载自my.oschina.net/u/2931319/blog/1840642