From b5fd5a434bc0b44be2e256af8bc456c45922cf48 Mon Sep 17 00:00:00 2001 From: Abhai Singh Date: Thu, 4 Jan 2018 13:51:14 +0530 Subject: Fix Sonar NicDaoZusammenImpl Fixed reported sonar issues Change-Id: Id0b925a8e01ac6aa40f48f4e9c1efa018b4155b1 Issue-ID: SDC-343 Signed-off-by: Abhai Singh --- .../dao/impl/zusammen/NicDaoZusammenImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'openecomp-be/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/NicDaoZusammenImpl.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/NicDaoZusammenImpl.java index 268e2546ed..b3f9a52a8d 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/NicDaoZusammenImpl.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/NicDaoZusammenImpl.java @@ -37,7 +37,7 @@ public class NicDaoZusammenImpl implements NicDao { @Override public void registerVersioning(String versionableEntityType) { - + // registerVersioning is not implemented for NicDaoZusammenImpl } @Override @@ -48,10 +48,10 @@ public class NicDaoZusammenImpl implements NicDao { private Collection listNics(SessionContext context, ElementContext elementContext, NicEntity nic) { - ElementToNicConvertor convertor = new ElementToNicConvertor(); return zusammenAdaptor.listElementsByName(context, elementContext, new Id(nic.getComponentId()), ElementType.Nics.name()) - .stream().map(convertor::convert) + .stream() + .map(new ElementToNicConvertor()::convert) .map(nicEntity -> { nicEntity.setComponentId(nicEntity.getComponentId()); nicEntity.setVspId(nic.getVspId()); @@ -199,7 +199,7 @@ public class NicDaoZusammenImpl implements NicDao { @Override public void deleteByVspId(String vspId, Version version) { - + // deleteByVspId not implemented for NicDaoZusammenImpl } private ZusammenElement nicToZusammen(NicEntity nic, Action action) { -- cgit 1.2.3-korg