summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/onap/aai/modelloader/entity/model/ModelV8ArtifactParser.java8
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);
- }
+
}
}
}