From 07d552581210c402536f0670331e43267b445de7 Mon Sep 17 00:00:00 2001 From: Taka Cho Date: Wed, 16 Oct 2019 17:04:43 -0400 Subject: replace deprecated addMixInAnnotations addMixInAnnotations(Class, Class) was deprecated use addMixIn instead Issue-ID: APPC-1764 Change-Id: Ic65e1f18a8d427f641a8d36003f29bdbf1b3b58b Signed-off-by: Taka Cho --- .../src/main/java/org/onap/appc/oam/messageadapter/Converter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'appc-oam/appc-oam-bundle/src') diff --git a/appc-oam/appc-oam-bundle/src/main/java/org/onap/appc/oam/messageadapter/Converter.java b/appc-oam/appc-oam-bundle/src/main/java/org/onap/appc/oam/messageadapter/Converter.java index 58fba5f23..2818f3935 100644 --- a/appc-oam/appc-oam-bundle/src/main/java/org/onap/appc/oam/messageadapter/Converter.java +++ b/appc-oam/appc-oam-bundle/src/main/java/org/onap/appc/oam/messageadapter/Converter.java @@ -105,10 +105,10 @@ public class Converter { DmaapOutgoingMessage dmaapOutgoingMessage = convAsyncResponseToUebOutgoingMessage(rpcName, commonHeader, status); ObjectMapper objectMapper = new ObjectMapper(); - objectMapper.addMixInAnnotations(dmaapOutgoingMessage.getBody().getOutput().getClass(), + objectMapper.addMixIn(dmaapOutgoingMessage.getBody().getOutput().getClass(), MixInFlagsMessage.class); - objectMapper.addMixInAnnotations(Status.class, MixIn.class); - objectMapper.addMixInAnnotations(CommonHeader.class, MixInCommonHeader.class); + objectMapper.addMixIn(Status.class, MixIn.class); + objectMapper.addMixIn(CommonHeader.class, MixInCommonHeader.class); ObjectWriter writer = objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL).configure (MapperFeature.SORT_PROPERTIES_ALPHABETICALLY, true).writer(); return writer.writeValueAsString(dmaapOutgoingMessage); -- cgit 1.2.3-korg