sdk-java
sdk-java copied to clipboard
Switch away from deprecated method
See: https://github.com/cloudevents/sdk-java/blob/b9eaa2fcaaf5569552e39ece4fce4a99064145e9/formats/json-jackson/src/main/java/io/cloudevents/jackson/CloudEventDeserializer.java#L121-L121
it appears to use JsonCloudEventData which is tagged as deprecated:
/**
* @param node the json node to wrap
* @deprecated You should use {@link #wrap(JsonNode)}
*/
public JsonCloudEventData(JsonNode node) {
Objects.requireNonNull(node);
this.node = node;
}