Skip to content

Commit

Permalink
Merge branch '2.19'
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 15, 2025
2 parents 73728de + bc66348 commit 552c1d5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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());

0 comments on commit 552c1d5

Please sign in to comment.