From dc3940018875d8064c1eb51afdc39768a033328a Mon Sep 17 00:00:00 2001 From: Joanna Jeremicz Date: Wed, 12 Jun 2019 14:34:50 +0200 Subject: Align to new SDK version Change-Id: I06974c7f890bfa1cb875d776efa8b3a9f5b0a711 Issue-ID: DCAEGEN2-1613 Signed-off-by: Joanna Jeremicz --- .../onap/dcaegen2/services/prh/service/DmaapConsumerJsonParser.java | 4 ++-- .../org/onap/dcaegen2/services/prh/tasks/DmaapConsumerTaskImpl.java | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'prh-app-server/src/main/java/org') diff --git a/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/service/DmaapConsumerJsonParser.java b/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/service/DmaapConsumerJsonParser.java index c059d34b..11939b53 100644 --- a/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/service/DmaapConsumerJsonParser.java +++ b/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/service/DmaapConsumerJsonParser.java @@ -20,10 +20,10 @@ package org.onap.dcaegen2.services.prh.service; -import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonParser; +import io.vavr.collection.List; import org.onap.dcaegen2.services.prh.exceptions.DmaapNotFoundException; import org.onap.dcaegen2.services.prh.model.ConsumerDmaapModel; import org.onap.dcaegen2.services.prh.model.ImmutableConsumerDmaapModel; @@ -85,7 +85,7 @@ public class DmaapConsumerJsonParser { return monoMessage.flatMapMany(msgRouterResponse -> getConsumerDmaapModelFromJsonArray(msgRouterResponse.items())); } - private Flux getConsumerDmaapModelFromJsonArray(JsonArray items) { + private Flux getConsumerDmaapModelFromJsonArray(List items) { LOGGER.debug("DmaapConsumerJsonParser input for parsing: {}", items); if (items.size() == 0) { diff --git a/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/DmaapConsumerTaskImpl.java b/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/DmaapConsumerTaskImpl.java index af5b2505..a990e502 100644 --- a/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/DmaapConsumerTaskImpl.java +++ b/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/DmaapConsumerTaskImpl.java @@ -50,8 +50,7 @@ public class DmaapConsumerTaskImpl implements DmaapConsumerTask { public Flux execute() { MessageRouterSubscriber messageRouterSubscriber = config.getMessageRouterSubscriber(); MessageRouterSubscribeRequest messageRouterSubscribeRequest = config.getMessageRouterSubscribeRequest(); - Mono response = messageRouterSubscriber - .get(messageRouterSubscribeRequest); + Mono response = messageRouterSubscriber.get(messageRouterSubscribeRequest); return dmaapConsumerJsonParser.getJsonObject(response); } -- cgit 1.2.3-korg