summaryrefslogtreecommitdiffstats
path: root/cps-ncmp-service/src/main/java/org/onap
diff options
context:
space:
mode:
authorsourabh_sourabh <sourabh.sourabh@est.tech>2021-12-20 23:28:49 +0530
committersourabh_sourabh <sourabh.sourabh@est.tech>2021-12-20 23:28:49 +0530
commit23bd18865486d334647a4928104acce625795e18 (patch)
tree10d21b6413c4a7a553c10110bfd6c9a770e17795 /cps-ncmp-service/src/main/java/org/onap
parent8d82a07ce860ab4e8626f0c2209c80cb4fdfa5eb (diff)
Fix Sonar Qube Violations - Recurring task
Issue-ID: CPS-475 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech> Change-Id: I5c10360ec42bc9737ed86140398ef954109275dd
Diffstat (limited to 'cps-ncmp-service/src/main/java/org/onap')
-rw-r--r--cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/operations/DmiModelOperations.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/operations/DmiModelOperations.java b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/operations/DmiModelOperations.java
index f74616ab30..20a3309d01 100644
--- a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/operations/DmiModelOperations.java
+++ b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/operations/DmiModelOperations.java
@@ -136,11 +136,11 @@ public class DmiModelOperations extends DmiOperations {
return asJsonObject;
}
- private List<ModuleReference> toModuleReferences(final Map dmiFetchModulesResponseAsMap) {
+ private List<ModuleReference> toModuleReferences(final Map<String, Object> dmiFetchModulesResponseAsMap) {
final List<ModuleReference> moduleReferences = new ArrayList<>();
if (dmiFetchModulesResponseAsMap != null) {
- final List moduleReferencesAsList = (List) dmiFetchModulesResponseAsMap.get("schemas");
+ final List<Object> moduleReferencesAsList = (List) dmiFetchModulesResponseAsMap.get("schemas");
if (moduleReferencesAsList != null) {
moduleReferencesAsList.forEach(moduleReferenceAsMap -> {
final ModuleReference moduleReference =