Commit 8ace426e by Johannes Edmeier

Correct custom json deserializer's base class.

It's indended by the Jackson developers to extend StdDeserializer and not the JsonDeserializer
parent 378348b9
...@@ -30,11 +30,11 @@ import org.springframework.util.StringUtils; ...@@ -30,11 +30,11 @@ import org.springframework.util.StringUtils;
import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
import com.fasterxml.jackson.databind.ser.std.StdSerializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer;
/** /**
...@@ -139,7 +139,11 @@ public class Registration implements Serializable { ...@@ -139,7 +139,11 @@ public class Registration implements Serializable {
} }
} }
public static class Deserializer extends JsonDeserializer<Registration> { public static class Deserializer extends StdDeserializer<Registration> {
protected Deserializer() {
super(Registration.class);
}
@Override @Override
public Registration deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { public Registration deserialize(JsonParser p, DeserializationContext ctxt) throws IOException {
JsonNode node = p.readValueAsTree(); JsonNode node = p.readValueAsTree();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment