forked from plusone/plusone-commons
修改拼写错误的方法名。
This commit is contained in:
@@ -145,7 +145,7 @@ public abstract class AbstractMapWrapper<K, V, T extends AbstractMapWrapper<K, V
|
||||
|
||||
public final V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) {
|
||||
if (this.map instanceof ConcurrentHashMap) {
|
||||
return ConcurrentHashMapUtil.computIfAbsent(
|
||||
return ConcurrentHashMapUtil.computeIfAbsent(
|
||||
(ConcurrentHashMap<K, V>) this.map, key, mappingFunction);
|
||||
} else {
|
||||
return this.map.computeIfAbsent(key, mappingFunction);
|
||||
|
@@ -102,6 +102,6 @@ public class SafeConcurrentHashMap<K, V> extends ConcurrentHashMap<K, V> {
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) {
|
||||
return ConcurrentHashMapUtil.computIfAbsent(this, key, mappingFunction);
|
||||
return ConcurrentHashMapUtil.computeIfAbsent(this, key, mappingFunction);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user