From 2f0dd823704cd9059be3bf61d414e1f8bddd269a Mon Sep 17 00:00:00 2001 From: "Kalkere Ramesh, Sharan" Date: Wed, 6 May 2020 17:51:53 -0400 Subject: updated code with parallel streams to normal updated code with parallel streams to normal streams Issue-ID: SO-2904 Signed-off-by: Benjamin, Max (mb388a) Change-Id: Ifb9c3644b1129f593acde31b57b0bb3ec24074d2 --- .../java/org/onap/so/adapters/catalogdb/rest/ServiceMapper.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'adapters/mso-catalog-db-adapter/src/main') diff --git a/adapters/mso-catalog-db-adapter/src/main/java/org/onap/so/adapters/catalogdb/rest/ServiceMapper.java b/adapters/mso-catalog-db-adapter/src/main/java/org/onap/so/adapters/catalogdb/rest/ServiceMapper.java index e74663dbba..09c790cc6a 100644 --- a/adapters/mso-catalog-db-adapter/src/main/java/org/onap/so/adapters/catalogdb/rest/ServiceMapper.java +++ b/adapters/mso-catalog-db-adapter/src/main/java/org/onap/so/adapters/catalogdb/rest/ServiceMapper.java @@ -68,7 +68,7 @@ public class ServiceMapper { private List mapVnfs(org.onap.so.db.catalog.beans.Service service, int depth) { List vnfs = new ArrayList<>(); logger.info("Vnf Count : {}", service.getVnfCustomizations().size()); - service.getVnfCustomizations().parallelStream().forEach(vnf -> vnfs.add(mapVnf(vnf, depth))); + service.getVnfCustomizations().stream().forEach(vnf -> vnfs.add(mapVnf(vnf, depth))); return vnfs; } @@ -104,7 +104,7 @@ public class ServiceMapper { private List mapVfModules(VnfResourceCustomization vnfResourceCustomization, int depth) { List vfModules = new ArrayList<>(); - vnfResourceCustomization.getVfModuleCustomizations().parallelStream() + vnfResourceCustomization.getVfModuleCustomizations().stream() .forEach(vfModule -> vfModules.add(mapVfModule(vfModule, depth))); return vfModules; } @@ -133,8 +133,7 @@ public class ServiceMapper { private List mapCvnfcs(VfModuleCustomization vfModuleCustomization) { List cvnfcs = new ArrayList<>(); - vfModuleCustomization.getCvnfcCustomization().parallelStream() - .forEach(cvnfcCust -> cvnfcs.add(mapCvnfcCus(cvnfcCust))); + vfModuleCustomization.getCvnfcCustomization().stream().forEach(cvnfcCust -> cvnfcs.add(mapCvnfcCus(cvnfcCust))); return cvnfcs; } -- cgit 1.2.3-korg