Skip to content

Commit

Permalink
Update JsonValueDeserializer.java
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning authored and cowtowncoder committed Apr 9, 2023
1 parent 01d218b commit 6394c51
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,16 +230,16 @@ protected JsonValue _deserializeScalar(JsonParser p, DeserializationContext ctxt
return b.add(p.getBigIntegerValue()).build().get(0);
}
}
case VALUE_STRING:
return _builderFactory.createArrayBuilder().add(p.getText()).build().get(0);
default: // errors, should never get here
case VALUE_STRING:
return _builderFactory.createArrayBuilder().add(p.getText()).build().get(0);
default: // errors, should never get here
// case END_ARRAY:
// case END_OBJECT:
// case FIELD_NAME:
// case NOT_AVAILABLE:
// case START_ARRAY:
// case START_OBJECT:
return (JsonValue) ctxt.handleUnexpectedToken(getValueType(ctxt), p);
return (JsonValue) ctxt.handleUnexpectedToken(getValueType(ctxt), p);
}
}
}

0 comments on commit 6394c51

Please sign in to comment.