diff options
author | Taka Cho <takamune.cho@att.com> | 2019-10-10 15:36:32 -0400 |
---|---|---|
committer | Taka Cho <takamune.cho@att.com> | 2019-10-10 15:39:55 -0400 |
commit | 54b8c6d11a5bb8111b6d991258b77c4a41a500cb (patch) | |
tree | ce41edd3103eb716fde1132fc36648604585d02e /appc-oam/appc-oam-bundle | |
parent | e48727b615d84e00f681359b899912cdfc65d876 (diff) |
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 <takamune.cho@att.com>
Diffstat (limited to 'appc-oam/appc-oam-bundle')
-rw-r--r-- | appc-oam/appc-oam-bundle/src/main/java/org/onap/appc/oam/messageadapter/DmaapOutgoingMessage.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/appc-oam/appc-oam-bundle/src/main/java/org/onap/appc/oam/messageadapter/DmaapOutgoingMessage.java b/appc-oam/appc-oam-bundle/src/main/java/org/onap/appc/oam/messageadapter/DmaapOutgoingMessage.java index 4d7c665c1..824dd20bb 100644 --- a/appc-oam/appc-oam-bundle/src/main/java/org/onap/appc/oam/messageadapter/DmaapOutgoingMessage.java +++ b/appc-oam/appc-oam-bundle/src/main/java/org/onap/appc/oam/messageadapter/DmaapOutgoingMessage.java @@ -24,15 +24,15 @@ package org.onap.appc.oam.messageadapter; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; /** * This class represents a message being sent out to DMaaP by APPC as async response. * note the structure of this class must be adapted to the sync message sent to DMaaP represented in org.onap.appc.listener.LCM.domainmodel.DmaapOutgoingMessage * */ -@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL) +@JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(ignoreUnknown = true) public class DmaapOutgoingMessage { @@ -103,8 +103,7 @@ public class DmaapOutgoingMessage { ", body=" + body + '}'; } - - @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL) + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(ignoreUnknown = true) public static class Body { public Body() { |