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>
}
}
- 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);
- }
+
}
}
}