From 58c525ebc484adccdb0510761aa858d9b177b1c0 Mon Sep 17 00:00:00 2001 From: aishkashyap Date: Mon, 15 Jan 2018 12:30:17 +0530 Subject: Sonar Major:Add the @Override annotation. Add the @Override annotation above this method signature. Sonar Link: https://sonar.onap.org/component_issues/index?id=org.onap.aai.model-loader%3Amodel-loader#assignees=__me__|resolved=false Location: src/main/java/org/onap/aai/modelloader/entity/model/ModelV8ArtifactParser.java Line No:55 Issue-ID: AAI-653 Change-Id: Iacf71ed6a80b986815c774ba057df727385f0745 Signed-off-by: aishkashyap --- .../onap/aai/modelloader/entity/model/ModelV8ArtifactParser.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/onap/aai/modelloader/entity/model/ModelV8ArtifactParser.java b/src/main/java/org/onap/aai/modelloader/entity/model/ModelV8ArtifactParser.java index 1e90a04..af3fec9 100644 --- a/src/main/java/org/onap/aai/modelloader/entity/model/ModelV8ArtifactParser.java +++ b/src/main/java/org/onap/aai/modelloader/entity/model/ModelV8ArtifactParser.java @@ -51,7 +51,7 @@ public class ModelV8ArtifactParser implements IModelParser { private static Logger logger = LoggerFactory.getInstance().getLogger(ModelV8ArtifactParser.class.getName()); - + @Override public List parse(byte[] artifactPayload, String artifactName) { String payload = new String(artifactPayload); List modelList = new ArrayList(); @@ -127,10 +127,10 @@ public class ModelV8ArtifactParser implements IModelParser { } } - if ( (key != null) && (key.equalsIgnoreCase(MODEL_ELEMENT_RELATIONSHIP_KEY )) ) { - if (value != null) { + if ( (key != null) && (key.equalsIgnoreCase(MODEL_ELEMENT_RELATIONSHIP_KEY )) && (value != null) ) { + model.addDependentModelId(value); - } + } } } -- cgit 1.2.3-korg