From d0686cb129ade15e3508a82d21ed2dfd828966e2 Mon Sep 17 00:00:00 2001 From: aishkashyap Date: Mon, 15 Jan 2018 11:18:26 +0530 Subject: 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 --- .../onap/aai/modelloader/entity/model/ModelV8ArtifactParser.java | 6 +++--- 1 file 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); - } + } } } -- cgit 1.2.3-korg