Skip to content

Commit

Permalink
Ensure compatibility with Jackson 2.16.x (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
pivovarit authored Oct 13, 2024
1 parent 2b647da commit 2b2255e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public CharSeq deserialize(JsonParser p, DeserializationContext ctxt) throws IOE
if (obj instanceof String) {
return CharSeq.of((String) obj);
} else {
throw ctxt.wrongTokenException(p, JsonToken.VALUE_STRING, "CharSeq can only be deserialized from String");
throw JsonMappingException.from(p, String.format("Unexpected token (%s), expected %s: CharSeq can only be deserialized from String", p.getCurrentToken(), JsonToken.VALUE_STRING));
}
}

Expand Down

0 comments on commit 2b2255e

Please sign in to comment.