Skip to content

Commit bc66348

Browse files
committed
Yet one more fix wrt #3406 testing
1 parent 0a6ca39 commit bc66348

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/com/fasterxml/jackson/databind/objectid/JSOGDeserialize622Test.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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());

0 commit comments

Comments
 (0)