summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoraishkashyap <as00476394@techmahindra.com>2018-01-15 11:18:26 +0530
committeraishkashyap <as00476394@techmahindra.com>2018-01-15 11:19:58 +0530
commitd0686cb129ade15e3508a82d21ed2dfd828966e2 (patch)
tree05f80de87d860d3f686b7fe2d636a3d80664c7be /src
parente8f57313f2d84d8851c7d935413d0e7b20db49a6 (diff)
Sonar Major:Merge if statement.
Merge if statement with the enclosing one. Sonar Link: https://sonar.onap.org/component_issues/index?id=org.onap.aai.model-loader%3Amodel-loader#resolved=false|assigned=false Location: src/main/java/org/onap/aai/modelloader/entity/model/ModelV8ArtifactParser.java Line No:131 Issue-ID: AAI-648 Change-Id: I50ac1d612fb32b20a7520af44b7abe26b3d89399 Signed-off-by: aishkashyap <as00476394@techmahindra.com>
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/onap/aai/modelloader/entity/model/ModelV8ArtifactParser.java6
1 files changed, 3 insertions, 3 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..47a168e 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
@@ -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);
- }
+
}
}
}