mirror of
https://gitee.com/dromara/hutool.git
synced 2026-02-09 09:16:26 +08:00
修复TransMap.computeIfAbsentmappingFunction处理不一致问题(issue#IDM6UR@Gitee)
This commit is contained in:
@@ -107,7 +107,7 @@ public abstract class TransMap<K, V> extends MapWrapper<K, V> {
|
||||
|
||||
@Override
|
||||
public V computeIfAbsent(final K key, final Function<? super K, ? extends V> mappingFunction) {
|
||||
return super.computeIfAbsent(customKey(key), k -> customValue(mappingFunction.apply(customKey(k))));
|
||||
return super.computeIfAbsent(customKey(key), k -> customValue(mappingFunction.apply(k)));
|
||||
}
|
||||
//---------------------------------------------------------------------------- Override default methods end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user