From c928fdbe7f585b7844bdcc63b8313db041eec512 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sun, 8 Oct 2023 13:44:19 +0100 Subject: [PATCH] stop using deprecatec method that is removed in jackson 2.16 Update gradle.properties --- .../vavr/jackson/datatype/deserialize/CharSeqDeserializer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/vavr/jackson/datatype/deserialize/CharSeqDeserializer.java b/src/main/java/io/vavr/jackson/datatype/deserialize/CharSeqDeserializer.java index 04192a2..c9391a1 100644 --- a/src/main/java/io/vavr/jackson/datatype/deserialize/CharSeqDeserializer.java +++ b/src/main/java/io/vavr/jackson/datatype/deserialize/CharSeqDeserializer.java @@ -48,7 +48,8 @@ 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 ctxt.wrongTokenException(p, (JavaType) null, + JsonToken.VALUE_STRING, "CharSeq can only be deserialized from String"); } }