cloudevents/sdk-java

Switch away from deprecated method

duglin opened this issue · 1 comments

See:


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;
    }

thanks @pierDipi