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) {
9595 static class JSOGRefDeserializer extends JsonDeserializer <JSOGRef >
9696 {
9797 @ 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 );
100100 if (node .isTextual ()) {
101101 return new JSOGRef (node .asInt ());
102102 }
103103 JsonNode n = node .get (REF_KEY );
104104 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
106106 +"' from (" +node .getClass ().getName ()+"): " +node );
107107 }
108108 return new JSOGRef (n .asInt ());
You can’t perform that action at this time.
0 commit comments