Made CollectionsFactory generic

This commit is contained in:
Arjen Poutsma
2009-02-05 15:33:44 +00:00
parent 5786f6c359
commit 747ee86079
4 changed files with 28 additions and 26 deletions

View File

@@ -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);
}
/**

View File

@@ -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>();