Skip to content

Commit 552c1d5

Browse files
committed
Merge branch '2.19'
2 parents 73728de + bc66348 commit 552c1d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/tools/jackson/databind/objectid/JSOGDeserialize622Test.java

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

0 commit comments

Comments
 (0)