diff options
author | Abhai Singh <Abhai.Singh@amdocs.com> | 2018-01-03 19:10:27 +0530 |
---|---|---|
committer | Vitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com> | 2018-01-04 11:29:04 +0000 |
commit | 5a4e534aa1581504aac9ec809940cc5c561667e0 (patch) | |
tree | bc2f42190781d25e05f58b919eb9818007040ed3 /openecomp-be | |
parent | c09a82325a1518bd1fce7221b9be2fac32511f2d (diff) |
Fix Sonar issues- ComputeDaoZusammenImpl
Fixed reported sonar issue
Change-Id: Ic7f24226dec3320124bf0acd3f70afdec3466163
Issue-ID: SDC-343
Signed-off-by: Abhai Singh <Abhai.Singh@amdocs.com>
Diffstat (limited to 'openecomp-be')
1 files changed, 3 insertions, 2 deletions
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<ComputeEntity> 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()); |