Skip to content

Commit

Permalink
Yet one more fix wrt #3406 testing
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 15, 2025
1 parent 0a6ca39 commit bc66348
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ public JSOGRef generateId(Object forPojo) {
static class JSOGRefDeserializer extends JsonDeserializer<JSOGRef>
{
@Override
public JSOGRef deserialize(JsonParser p, DeserializationContext ctx) throws IOException {
JsonNode node = p.readValueAsTree();
public JSOGRef deserialize(JsonParser p, DeserializationContext ctxt) throws IOException {
JsonNode node = ctxt.readTree(p);
if (node.isTextual()) {
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 bc66348

Please sign in to comment.