summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-tosca-lib
diff options
context:
space:
mode:
authorTal Gitelman <tg851x@intl.att.com>2017-06-22 18:23:07 +0300
committerTal Gitelman <tg851x@intl.att.com>2017-06-22 18:23:07 +0300
commit68ccc45de18f41cddb79de33a245bceb3b063ffb (patch)
treed80619a8539a8a03f68304c23eef7e3790ca63c6 /openecomp-be/lib/openecomp-tosca-lib
parent7d92498efd0ea61097b241287c004965d46b2c12 (diff)
[sdc] - latest code changes
Change-Id: I861387094b000367218bb417624fe50d3c37f70e Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-tosca-lib')
-rw-r--r--openecomp-be/lib/openecomp-tosca-lib/src/main/java/org/openecomp/sdc/tosca/services/DataModelUtil.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/openecomp-be/lib/openecomp-tosca-lib/src/main/java/org/openecomp/sdc/tosca/services/DataModelUtil.java b/openecomp-be/lib/openecomp-tosca-lib/src/main/java/org/openecomp/sdc/tosca/services/DataModelUtil.java
index 28b9c67591..49ea45e8c8 100644
--- a/openecomp-be/lib/openecomp-tosca-lib/src/main/java/org/openecomp/sdc/tosca/services/DataModelUtil.java
+++ b/openecomp-be/lib/openecomp-tosca-lib/src/main/java/org/openecomp/sdc/tosca/services/DataModelUtil.java
@@ -719,6 +719,10 @@ public class DataModelUtil {
mdcDataDebugMessage.debugEntryMessage(null, null);
+ if(Objects.isNull(type) && Objects.isNull(description) && CollectionUtils.isEmpty(constraints)){
+ return null;
+ }
+
EntrySchema entrySchema = new EntrySchema();
entrySchema.setType(type);
entrySchema.setDescription(description);