aboutsummaryrefslogtreecommitdiffstats
path: root/appc-dispatcher/appc-request-handler/appc-request-handler-core/src
diff options
context:
space:
mode:
authorTaka Cho <takamune.cho@att.com>2019-10-16 17:04:43 -0400
committerTaka Cho <takamune.cho@att.com>2019-10-16 17:06:59 -0400
commit07d552581210c402536f0670331e43267b445de7 (patch)
tree6e1d39c574daed2a649f504c49f7a62ff4020ffa /appc-dispatcher/appc-request-handler/appc-request-handler-core/src
parentc13a9c95e47b072afb701ad490480036ef36db26 (diff)
replace deprecated addMixInAnnotations
addMixInAnnotations(Class<?>, Class<?>) was deprecated use addMixIn instead Issue-ID: APPC-1764 Change-Id: Ic65e1f18a8d427f641a8d36003f29bdbf1b3b58b Signed-off-by: Taka Cho <takamune.cho@att.com>
Diffstat (limited to 'appc-dispatcher/appc-request-handler/appc-request-handler-core/src')
-rw-r--r--appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/conv/Converter.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/conv/Converter.java b/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/conv/Converter.java
index 260f8695f..41b71224d 100644
--- a/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/conv/Converter.java
+++ b/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/conv/Converter.java
@@ -413,12 +413,12 @@ public class Converter {
Builder<?> builder = Converter.convAsyncResponseToBuilder(vnfOperation, rpcName, asyncResponse);
Object message = builder.build();
ObjectMapper objectMapper = new ObjectMapper();
- objectMapper.addMixInAnnotations(message.getClass(), MixInFlagsMessage.class);
- objectMapper.addMixInAnnotations(CommonHeader.class, MixInCommonHeader.class);
- objectMapper.addMixInAnnotations(Flags.class, MixIn.class);
- objectMapper.addMixInAnnotations(Status.class, MixIn.class);
- objectMapper.addMixInAnnotations(Payload.class, MixIn.class);
- objectMapper.addMixInAnnotations(ZULU.class, MixIn.class);
+ objectMapper.addMixIn(message.getClass(), MixInFlagsMessage.class);
+ objectMapper.addMixIn(CommonHeader.class, MixInCommonHeader.class);
+ objectMapper.addMixIn(Flags.class, MixIn.class);
+ objectMapper.addMixIn(Status.class, MixIn.class);
+ objectMapper.addMixIn(Payload.class, MixIn.class);
+ objectMapper.addMixIn(ZULU.class, MixIn.class);
// .configure(SerializationConfig.Feature.SORT_PROPERTIES_ALPHABETICALLY,true)
ObjectWriter writer = objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL).configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY,true)
@@ -430,12 +430,12 @@ public class Converter {
logger.debug("Entered Converter.convAsyncResponseToDmaapOutgoingMessageJsonString()");
DmaapOutgoingMessage dmaapOutgoingMessage = convAsyncResponseToDmaapOutgoingMessage(vnfOperation, rpcName, asyncResponse);
ObjectMapper objectMapper = new ObjectMapper();
- objectMapper.addMixInAnnotations(dmaapOutgoingMessage.getBody().getOutput().getClass(), MixInFlagsMessage.class);
- objectMapper.addMixInAnnotations(CommonHeader.class, MixInCommonHeader.class);
- objectMapper.addMixInAnnotations(Flags.class, MixIn.class);
- objectMapper.addMixInAnnotations(Status.class, MixIn.class);
- objectMapper.addMixInAnnotations(Payload.class, MixIn.class);
- objectMapper.addMixInAnnotations(ZULU.class, MixIn.class);
+ objectMapper.addMixIn(dmaapOutgoingMessage.getBody().getOutput().getClass(), MixInFlagsMessage.class);
+ objectMapper.addMixIn(CommonHeader.class, MixInCommonHeader.class);
+ objectMapper.addMixIn(Flags.class, MixIn.class);
+ objectMapper.addMixIn(Status.class, MixIn.class);
+ objectMapper.addMixIn(Payload.class, MixIn.class);
+ objectMapper.addMixIn(ZULU.class, MixIn.class);
// .configure(SerializationConfig.Feature.SORT_PROPERTIES_ALPHABETICALLY,true)
ObjectWriter writer = objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL).configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY,true).writer();