File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/test/java/tools/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 @@ -87,15 +87,15 @@ public JSOGRef generateId(Object forPojo) {
8787 static class JSOGRefDeserializer extends ValueDeserializer <JSOGRef >
8888 {
8989 @ Override
90- public JSOGRef deserialize (JsonParser p , DeserializationContext ctx )
90+ public JSOGRef deserialize (JsonParser p , DeserializationContext ctxt )
9191 {
92- JsonNode node = p . readValueAsTree ( );
92+ JsonNode node = ctxt . readTree ( p );
9393 if (node .isString ()) {
9494 return new JSOGRef (node .asInt ());
9595 }
9696 JsonNode n = node .get (REF_KEY );
9797 if (n == null ) {
98- ctx .reportInputMismatch (JSOGRef .class , "Could not find key '" +REF_KEY
98+ ctxt .reportInputMismatch (JSOGRef .class , "Could not find key '" +REF_KEY
9999 +"' from (" +node .getClass ().getName ()+"): " +node );
100100 }
101101 return new JSOGRef (n .asInt ());
You can’t perform that action at this time.
0 commit comments