Skip to content

Commit

Permalink
remove double-contextualization
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Nov 26, 2014
1 parent 7d4201c commit b07c152
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,6 @@ public void resolve(DeserializationContext ctxt) throws JsonMappingException
_listDeserializer = _findCustomDeser(ctxt, tf.constructCollectionType(List.class, obType));
_stringDeserializer = _findCustomDeser(ctxt, stringType);
_numberDeserializer = _findCustomDeser(ctxt, tf.constructType(Number.class));

// and then do bogus contextualization, in case custom ones need to resolve dependencies of
// their own
_mapDeserializer = (JsonDeserializer<Object>) ctxt.handleSecondaryContextualization(_mapDeserializer, null);
_listDeserializer = (JsonDeserializer<Object>) ctxt.handleSecondaryContextualization(_listDeserializer, null);
_stringDeserializer = (JsonDeserializer<Object>) ctxt.handleSecondaryContextualization(_stringDeserializer, null);
_numberDeserializer = (JsonDeserializer<Object>) ctxt.handleSecondaryContextualization(_numberDeserializer, null);
}

@SuppressWarnings("unchecked")
Expand Down

0 comments on commit b07c152

Please sign in to comment.