Permalink
Browse files

removing deprecated function of TypeFactory

  • Loading branch information...
1 parent b0021b9 commit 56feadc312d5c171d549667c2f8923fce2e4f4f0 @mboudreau committed Aug 22, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/main/java/com/michelboudreau/alternator/AlternatorDBHandler.java
@@ -45,7 +45,8 @@ public void restore(String persistence){
return;
}
- tableList = createObjectMapper().readValue(dbFile, TypeFactory.collectionType(ArrayList.class, Table.class));
+ ObjectMapper objectMapper = createObjectMapper();
+ tableList = objectMapper.readValue(dbFile, objectMapper.getTypeFactory().constructCollectionType(ArrayList.class, Table.class));
for (Table table : tableList){
tables.put(table.getName(), table);

0 comments on commit 56feadc

Please sign in to comment.