diff options
author | Steven Blimkie <Steven.Blimkie@amdocs.com> | 2018-01-17 14:31:50 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-01-17 14:31:50 +0000 |
commit | e7b96fad708f8bfd05a08084825d8313fb7a511f (patch) | |
tree | eadd67546acc29eb604ca13a051ddeae545f64ab /src/main/java/org/onap | |
parent | af9789d15bbaa83a21021dc5bcf749c44a8a6a80 (diff) | |
parent | 58c525ebc484adccdb0510761aa858d9b177b1c0 (diff) |
Merge "Sonar Major:Add the @Override annotation."
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 69aabf0..ce23567 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<>(); @@ -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); - } + } } } |