Skip to content

Commit 89b6480

Browse files
committed
Use MapUtil.computeIfAbsent
1 parent 5a11f0d commit 89b6480

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/ibatis/executor/resultset/DefaultResultSetHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ private boolean applyArgNameBasedConstructorAutoMapping(ResultSetWrapper rsw, Re
782782
constructorArgs.add(value);
783783
final String mapKey = resultMap.getId() + ":" + columnPrefix;
784784
if (!autoMappingsCache.containsKey(mapKey)) {
785-
constructorAutoMappingColumns.computeIfAbsent(mapKey, k -> new ArrayList<>()).add(columnName);
785+
MapUtil.computeIfAbsent(constructorAutoMappingColumns, mapKey, k -> new ArrayList<>()).add(columnName);
786786
}
787787
columnNotFound = false;
788788
foundValues = value != null || foundValues;

0 commit comments

Comments
 (0)