From 6394c51da0ac0aed380d1ac3bd57e8969efa20f1 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sat, 8 Apr 2023 13:29:02 +0200 Subject: [PATCH] Update JsonValueDeserializer.java --- .../jackson/datatype/jsonp/JsonValueDeserializer.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jakarta-jsonp/src/main/java/com/fasterxml/jackson/datatype/jsonp/JsonValueDeserializer.java b/jakarta-jsonp/src/main/java/com/fasterxml/jackson/datatype/jsonp/JsonValueDeserializer.java index 9b32170..736a2a2 100644 --- a/jakarta-jsonp/src/main/java/com/fasterxml/jackson/datatype/jsonp/JsonValueDeserializer.java +++ b/jakarta-jsonp/src/main/java/com/fasterxml/jackson/datatype/jsonp/JsonValueDeserializer.java @@ -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); } } }