From 5a4e534aa1581504aac9ec809940cc5c561667e0 Mon Sep 17 00:00:00 2001 From: Abhai Singh Date: Wed, 3 Jan 2018 19:10:27 +0530 Subject: Fix Sonar issues- ComputeDaoZusammenImpl Fixed reported sonar issue Change-Id: Ic7f24226dec3320124bf0acd3f70afdec3466163 Issue-ID: SDC-343 Signed-off-by: Abhai Singh --- .../dao/impl/zusammen/ComputeDaoZusammenImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'openecomp-be/lib/openecomp-sdc-vendor-software-product-lib') diff --git a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/impl/zusammen/ComputeDaoZusammenImpl.java b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/impl/zusammen/ComputeDaoZusammenImpl.java index 0f92c95294..ad6bc03dda 100644 --- a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/impl/zusammen/ComputeDaoZusammenImpl.java +++ b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/impl/zusammen/ComputeDaoZusammenImpl.java @@ -38,6 +38,7 @@ public class ComputeDaoZusammenImpl implements ComputeDao { @Override public void registerVersioning(String versionableEntityType) { + // registerVersioning not implemented for ComputeDaoZusammenImpl } @Override @@ -52,11 +53,11 @@ public class ComputeDaoZusammenImpl implements ComputeDao { private Collection listComputes(SessionContext context, ElementContext elementContext, ComputeEntity compute) { - ElementToComputeConvertor convertor = new ElementToComputeConvertor(); return zusammenAdaptor .listElementsByName(context, elementContext, new Id(compute.getComponentId()), ElementType.Computes.name()) - .stream().map(elementInfo -> convertor.convert(elementInfo)) + .stream() + .map(new ElementToComputeConvertor()::convert) .map(computeEntity -> { computeEntity.setComponentId(compute.getComponentId()); computeEntity.setVspId(compute.getVspId()); -- cgit 1.2.3-korg