From 54b8c6d11a5bb8111b6d991258b77c4a41a500cb Mon Sep 17 00:00:00 2001 From: Taka Cho Date: Thu, 10 Oct 2019 15:36:32 -0400 Subject: replace deprecated JsonSerialize.Inclusion @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL) was deprecated use @JsonInclude(Include.NON_NULL) instead to suppress when property is NULL Issue-ID: APPC-1764 Change-Id: I1bbe10a156166bc37a167122ff68d1dc183fcd2f Signed-off-by: Taka Cho --- .../src/main/java/org/onap/appc/sdc/artifacts/object/Vnfc.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'appc-sdc-listener') diff --git a/appc-sdc-listener/appc-sdc-listener-bundle/src/main/java/org/onap/appc/sdc/artifacts/object/Vnfc.java b/appc-sdc-listener/appc-sdc-listener-bundle/src/main/java/org/onap/appc/sdc/artifacts/object/Vnfc.java index 85294ad25..3a966a9f8 100644 --- a/appc-sdc-listener/appc-sdc-listener-bundle/src/main/java/org/onap/appc/sdc/artifacts/object/Vnfc.java +++ b/appc-sdc-listener/appc-sdc-listener-bundle/src/main/java/org/onap/appc/sdc/artifacts/object/Vnfc.java @@ -24,13 +24,13 @@ package org.onap.appc.sdc.artifacts.object; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; import java.util.List; -@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL) +@JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(ignoreUnknown = true) @JsonPropertyOrder({"vnfc-type","mandatory","resilience","parents"}) public class Vnfc { -- cgit 1.2.3-korg