File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/test/java/com/fasterxml/jackson/databind/objectid Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -95,14 +95,14 @@ public JSOGRef generateId(Object forPojo) {
95
95
static class JSOGRefDeserializer extends JsonDeserializer <JSOGRef >
96
96
{
97
97
@ Override
98
- public JSOGRef deserialize (JsonParser p , DeserializationContext ctx ) throws IOException {
99
- JsonNode node = p . readValueAsTree ( );
98
+ public JSOGRef deserialize (JsonParser p , DeserializationContext ctxt ) throws IOException {
99
+ JsonNode node = ctxt . readTree ( p );
100
100
if (node .isTextual ()) {
101
101
return new JSOGRef (node .asInt ());
102
102
}
103
103
JsonNode n = node .get (REF_KEY );
104
104
if (n == null ) {
105
- ctx .reportInputMismatch (JSOGRef .class , "Could not find key '" +REF_KEY
105
+ ctxt .reportInputMismatch (JSOGRef .class , "Could not find key '" +REF_KEY
106
106
+"' from (" +node .getClass ().getName ()+"): " +node );
107
107
}
108
108
return new JSOGRef (n .asInt ());
You can’t perform that action at this time.
0 commit comments