From 82f34a77fad3d0e27e03ccf31b91091f020a1a14 Mon Sep 17 00:00:00 2001 From: symphony-hong Date: Mon, 12 Oct 2020 15:03:58 +0200 Subject: [PATCH] Add @JsonIgnore to the OutboundMessage#setContentAttachment(ContentAttachment) There are two method setContentAttachment in OutboundMessage which can lead to ambigous reference error while deserializing with Jackson. Associated OutboundMessage#setContentAttachment(ContentAttachment) with @JsonIgnore to prevent Jackson use this setter to deserialize --- .../src/main/java/model/OutboundMessage.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/symphony-bdk-legacy/symphony-api-client-java/src/main/java/model/OutboundMessage.java b/symphony-bdk-legacy/symphony-api-client-java/src/main/java/model/OutboundMessage.java index c5549af97..96261fa2a 100755 --- a/symphony-bdk-legacy/symphony-api-client-java/src/main/java/model/OutboundMessage.java +++ b/symphony-bdk-legacy/symphony-api-client-java/src/main/java/model/OutboundMessage.java @@ -1,5 +1,6 @@ package model; +import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.io.File; import java.util.ArrayList; @@ -100,6 +101,7 @@ public void setContentAttachment(List contentAttachment) { this.contentAttachment = contentAttachment; } + @JsonIgnore public void setContentAttachment(ContentAttachment... contentAttachment) { this.contentAttachment = Arrays.asList(contentAttachment); }