Skip to content

Commit e88c98c

Browse files
committed
Removed on-liner method used in only one place
1 parent 3d8dbe1 commit e88c98c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ private Object getPropertyMappingValue(ResultSet rs, MetaObject metaResultObject
454454
}
455455

456456
private List<UnMappedColumAutoMapping> createAutomaticMappings(ResultSetWrapper rsw, ResultMap resultMap, MetaObject metaObject, String columnPrefix) throws SQLException {
457-
final String mapKey = getMapKey(resultMap, columnPrefix);
457+
final String mapKey = resultMap.getId() + ":" + columnPrefix;
458458
List<UnMappedColumAutoMapping> autoMapping = autoMappingsCache.get(mapKey);
459459
if (autoMapping == null) {
460460
autoMapping = new ArrayList<UnMappedColumAutoMapping>();
@@ -1073,8 +1073,4 @@ private Object instantiateCollectionPropertyIfAppropriate(ResultMapping resultMa
10731073
return null;
10741074
}
10751075

1076-
private String getMapKey(ResultMap resultMap, String columnPrefix) {
1077-
return resultMap.getId() + ":" + columnPrefix;
1078-
}
1079-
10801076
}

0 commit comments

Comments
 (0)