修复TransMap.computeIfAbsentmappingFunction处理不一致问题(issue#IDM6UR@Gitee)

This commit is contained in:
Looly
2026-01-28 10:32:14 +08:00
parent 78ad30ef49
commit 29ac254f06

View File

@@ -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