Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jun 15, 2016
1 parent 13bbbb5 commit 522d8f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,6 @@ protected BeanDeserializerBase asArrayDeserializer() {

/**
* Main deserialization method for bean-based objects (POJOs).
*<p>
* NOTE: was declared 'final' in 2.2; should NOT be to let extensions
* like Afterburner change definition.
*/
@Override
public Object deserialize(JsonParser p, DeserializationContext ctxt) throws IOException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ public JsonDeserializer<?> createContextual(DeserializationContext ctxt,
vd = findConvertingContentDeserializer(ctxt, property, vd);
}
final JavaType vt = _mapType.getContentType();
System.err.println("Map deser for "+_mapType+":\n vt == "+vt);
if (vd == null) {
vd = ctxt.findContextualValueDeserializer(vt, property);
} else { // if directly assigned, probably not yet contextual, so:
Expand Down Expand Up @@ -349,7 +350,7 @@ public Map<Object,Object> deserialize(JsonParser p, DeserializationContext ctxt)
}
final Map<Object,Object> result = (Map<Object,Object>) _valueInstantiator.createUsingDefault(ctxt);
if (_standardStringKey) {
_readAndBindStringMap(p, ctxt, result);
_readAndBindStringKeyMap(p, ctxt, result);
return result;
}
_readAndBind(p, ctxt, result);
Expand All @@ -371,7 +372,7 @@ public Map<Object,Object> deserialize(JsonParser p, DeserializationContext ctxt,
return (Map<Object,Object>) ctxt.handleUnexpectedToken(getMapClass(), p);
}
if (_standardStringKey) {
_readAndBindStringMap(p, ctxt, result);
_readAndBindStringKeyMap(p, ctxt, result);
return result;
}
_readAndBind(p, ctxt, result);
Expand Down Expand Up @@ -467,7 +468,7 @@ protected final void _readAndBind(JsonParser p, DeserializationContext ctxt,
* {@link java.lang.String}s, and there is no custom deserialized
* specified.
*/
protected final void _readAndBindStringMap(JsonParser p, DeserializationContext ctxt,
protected final void _readAndBindStringKeyMap(JsonParser p, DeserializationContext ctxt,
Map<Object,Object> result) throws IOException
{
final JsonDeserializer<Object> valueDes = _valueDeserializer;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.fasterxml.jackson.failing;

import java.io.StringReader;
import java.util.*;

import com.fasterxml.jackson.annotation.*;
Expand Down

0 comments on commit 522d8f6

Please sign in to comment.