aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be
diff options
context:
space:
mode:
authorAbhai Singh <Abhai.Singh@amdocs.com>2018-01-04 13:29:43 +0530
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2018-01-04 10:47:28 +0000
commit013b19d0a61a1f000f3bb5e4433b7f3cb8525430 (patch)
treeca1c2fd634f9803333af9f8dc005e3dbdbd1b83e /openecomp-be
parenta895663a3eaa0d068d138d2f429593fd59dc75b3 (diff)
Fix Sonar NetworkDaoZusammenImpl
Fixed reported sonar issues Change-Id: I2c401fd6b18a74d74096494ff7b15bc4d53df10e Issue-ID: SDC-343 Signed-off-by: Abhai Singh <Abhai.Singh@amdocs.com>
Diffstat (limited to 'openecomp-be')
-rw-r--r--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/NetworkDaoZusammenImpl.java5
1 files changed, 2 insertions, 3 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/NetworkDaoZusammenImpl.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/NetworkDaoZusammenImpl.java
index bccea3a85c..ba79fc4376 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/NetworkDaoZusammenImpl.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/NetworkDaoZusammenImpl.java
@@ -37,7 +37,7 @@ public class NetworkDaoZusammenImpl implements NetworkDao {
@Override
public void registerVersioning(String versionableEntityType) {
-
+ // registerVersioning not implemented for NetworkDaoZusammenImpl
}
@Override
@@ -52,10 +52,9 @@ public class NetworkDaoZusammenImpl implements NetworkDao {
return new ArrayList<>();
}
- ElementToNetworkConvertor convertor = new ElementToNetworkConvertor();
return zusammenAdaptor.listElementsByName(context, elementContext, vspModel.get().getId(),
ElementType.Networks.name()).stream()
- .map(convertor::convert)
+ .map(new ElementToNetworkConvertor()::convert)
.map(entity -> {
entity.setVspId(network.getVspId());
entity.setVersion(network.getVersion());