Made CollectionsFactory generic
This commit is contained in:
@@ -70,7 +70,7 @@ public class ColumnMapRowMapper implements RowMapper<Map<String, Object>> {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
protected Map<String, Object> createColumnMap(int columnCount) {
|
||||
return (Map<String, Object>) CollectionFactory.createLinkedCaseInsensitiveMapIfPossible(columnCount);
|
||||
return CollectionFactory.createLinkedCaseInsensitiveMapIfPossible(columnCount);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1170,7 +1170,7 @@ public class JdbcTemplate extends JdbcAccessor implements JdbcOperations {
|
||||
@SuppressWarnings("unchecked")
|
||||
protected Map<String, Object> createResultsMap() {
|
||||
if (isResultsMapCaseInsensitive()) {
|
||||
return (Map<String, Object>) CollectionFactory.createLinkedCaseInsensitiveMapIfPossible(16);
|
||||
return CollectionFactory.createLinkedCaseInsensitiveMapIfPossible(16);
|
||||
}
|
||||
else {
|
||||
return new LinkedHashMap<String, Object>();
|
||||
|
||||
Reference in New Issue
Block a user