diff options
author | aishkashyap <as00476394@techmahindra.com> | 2018-01-15 12:30:17 +0530 |
---|---|---|
committer | aishkashyap <as00476394@techmahindra.com> | 2018-01-15 12:31:27 +0530 |
commit | 58c525ebc484adccdb0510761aa858d9b177b1c0 (patch) | |
tree | 3660bfe7e401fafa7187e4f181bcd8c23a057ffb /src/main/java/org/onap | |
parent | e8f57313f2d84d8851c7d935413d0e7b20db49a6 (diff) |
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 <as00476394@techmahindra.com>
Diffstat (limited to 'src/main/java/org/onap')
-rw-r--r-- | src/main/java/org/onap/aai/modelloader/entity/model/ModelV8ArtifactParser.java | 8 |
1 files 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<Artifact> parse(byte[] artifactPayload, String artifactName) { String payload = new String(artifactPayload); List<Artifact> modelList = new ArrayList<Artifact>(); @@ -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); - } + } } } |