diff options
author | Sonsino, Ofir (os0695) <os0695@intl.att.com> | 2018-11-20 15:32:06 +0200 |
---|---|---|
committer | Oren Kleks <orenkle@amdocs.com> | 2018-11-25 10:46:51 +0000 |
commit | 7a55ea6955c0e75fe04c0e1d0af8a346310a75f5 (patch) | |
tree | ff81fa94553da37e2fcf10fe969f6c52bd7d669b /openecomp-be/lib | |
parent | b734ea21ac7be393c59cf9976f0e5ddeaf27d568 (diff) |
Fix Sonar issues
Change-Id: I487f54714f87e993b9fa4a3b43de7a65692922d5
Issue-ID: SDC-1925
Signed-off-by: Sonsino, Ofir (os0695) <os0695@intl.att.com>
Diffstat (limited to 'openecomp-be/lib')
2 files changed, 3 insertions, 4 deletions
diff --git a/openecomp-be/lib/openecomp-core-lib/openecomp-nosqldb-lib/openecomp-nosqldb-core/src/main/java/org/openecomp/core/dao/impl/UniqueValueDaoFactoryImpl.java b/openecomp-be/lib/openecomp-core-lib/openecomp-nosqldb-lib/openecomp-nosqldb-core/src/main/java/org/openecomp/core/dao/impl/UniqueValueDaoFactoryImpl.java index b717fcbee1..ac47de9b20 100644 --- a/openecomp-be/lib/openecomp-core-lib/openecomp-nosqldb-lib/openecomp-nosqldb-core/src/main/java/org/openecomp/core/dao/impl/UniqueValueDaoFactoryImpl.java +++ b/openecomp-be/lib/openecomp-core-lib/openecomp-nosqldb-lib/openecomp-nosqldb-core/src/main/java/org/openecomp/core/dao/impl/UniqueValueDaoFactoryImpl.java @@ -24,10 +24,10 @@ import org.openecomp.core.dao.UniqueValueDao; import org.openecomp.core.dao.UniqueValueDaoFactory; public class UniqueValueDaoFactoryImpl extends UniqueValueDaoFactory { - private static UniqueValueDao INSTANCE = new UniqueValueCassandraDaoImpl(); + private static UniqueValueDao instance = new UniqueValueCassandraDaoImpl(); @Override public UniqueValueDao createInterface() { - return INSTANCE; + return instance; } } diff --git a/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/main/java/org/openecomp/core/impl/services/ServiceTemplateReaderServiceImpl.java b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/main/java/org/openecomp/core/impl/services/ServiceTemplateReaderServiceImpl.java index 8621e73f26..b691d83267 100644 --- a/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/main/java/org/openecomp/core/impl/services/ServiceTemplateReaderServiceImpl.java +++ b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/main/java/org/openecomp/core/impl/services/ServiceTemplateReaderServiceImpl.java @@ -20,10 +20,9 @@ public class ServiceTemplateReaderServiceImpl implements ServiceTemplateReaderSe @Override public Map<String, Object> readServiceTemplate(byte[] serviceTemplateContent) { - Map<String, Object> readSt = + return new YamlUtil().yamlToObject(new String(serviceTemplateContent), Map.class); - return readSt; } @Override |