Skip to content

Commit e4c60f0

Browse files
authored
Merge pull request #2340 from TAKETODAY/fix-maputil
Fix MapUtil#computeIfAbsent Object repeated creation
2 parents acde70c + e350df3 commit e4c60f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/ibatis/util/MapUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static <K, V> V computeIfAbsent(Map<K, V> map, K key, Function<K, V> mapp
3232
if (value != null) {
3333
return value;
3434
}
35-
return map.computeIfAbsent(key, mappingFunction::apply);
35+
return map.computeIfAbsent(key, mappingFunction);
3636
}
3737

3838
/**

0 commit comments

Comments
 (0)