From e1b4295ed18d7bad1d50c5c4dff396d5d212e39e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9da=20Housni=20Alaoui?= Date: Mon, 2 Dec 2024 10:22:25 +0100 Subject: [PATCH] InlineElementRepresentationDeserializer can simply extend JsonDeserializer (#23) --- .../InlineElementRepresentationDeserializer.java | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/core/src/main/java/com/cosium/hal_mock_mvc/InlineElementRepresentationDeserializer.java b/core/src/main/java/com/cosium/hal_mock_mvc/InlineElementRepresentationDeserializer.java index fcfbe9b..2f92ec6 100644 --- a/core/src/main/java/com/cosium/hal_mock_mvc/InlineElementRepresentationDeserializer.java +++ b/core/src/main/java/com/cosium/hal_mock_mvc/InlineElementRepresentationDeserializer.java @@ -7,7 +7,7 @@ import com.fasterxml.jackson.core.JsonToken; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.fasterxml.jackson.databind.JsonDeserializer; import com.fasterxml.jackson.databind.exc.MismatchedInputException; import java.io.IOException; import java.util.Map; @@ -15,15 +15,8 @@ /** * @author RĂ©da Housni Alaoui */ -class InlineElementRepresentationDeserializer extends StdDeserializer { - - public InlineElementRepresentationDeserializer() { - this(null); - } - - protected InlineElementRepresentationDeserializer(Class vc) { - super(vc); - } +class InlineElementRepresentationDeserializer + extends JsonDeserializer { @Override public InlineElementRepresentation deserialize(JsonParser p, DeserializationContext ctxt)