Fixing internals

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/document-store-lib-couchdb@122612 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2016-01-28 16:08:34 +00:00
parent f5a93f0850
commit 2bf5db7b16
1 changed files with 2 additions and 2 deletions

View File

@ -74,8 +74,8 @@ public class PersistenceCouchDB extends PersistenceBackend {
protected static Record jsonNodeToUsageRecord(JsonNode jsonNode) throws Exception {
ObjectMapper mapper = new ObjectMapper();
@SuppressWarnings("unchecked")
Map<String, Comparable<? extends Serializable>> result = mapper.convertValue(jsonNode, Map.class);
Record record =RecordUtility.getRecord(result);
Map<String, Serializable> result = mapper.convertValue(jsonNode, Map.class);
Record record = RecordUtility.getRecord(result);
return record;
}