Skip to content

Commit

Permalink
Merge branch 'master' into tatu/3.0/3406-FAIL_ON_TRAILING-defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 15, 2025
2 parents 5de0a1f + 552c1d5 commit 0def37b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@ public JSOGRef generateId(Object forPojo) {
static class JSOGRefDeserializer extends ValueDeserializer<JSOGRef>
{
@Override
public JSOGRef deserialize(JsonParser p, DeserializationContext ctx)
public JSOGRef deserialize(JsonParser p, DeserializationContext ctxt)
{
JsonNode node = p.readValueAsTree();
JsonNode node = ctxt.readTree(p);
if (node.isString()) {
return new JSOGRef(node.asInt());
}
JsonNode n = node.get(REF_KEY);
if (n == null) {
ctx.reportInputMismatch(JSOGRef.class, "Could not find key '"+REF_KEY
ctxt.reportInputMismatch(JSOGRef.class, "Could not find key '"+REF_KEY
+"' from ("+node.getClass().getName()+"): "+node);
}
return new JSOGRef(n.asInt());
Expand Down

0 comments on commit 0def37b

Please sign in to comment.