diff options
author | talio <tali.orenbach@amdocs.com> | 2019-06-05 16:11:11 +0300 |
---|---|---|
committer | Avi Gaffa <avi.gaffa@amdocs.com> | 2019-06-06 08:43:50 +0000 |
commit | a4c1c763eeb890ff8187eb28ab2bc00f2901f7ee (patch) | |
tree | 92b38f6aae6a90bd11a24e6b293f7b88296af254 /catalog-model/src/main/java/org | |
parent | 70cd3ef0d7d6b88a5de45ef0cf252d06e9e7b5c2 (diff) |
Fix static list value issue
Change-Id: I976404e172aae756248cb4e3fe367e1c00c72168
Issue-ID: SDC-2355
Signed-off-by: talio <tali.orenbach@amdocs.com>
Diffstat (limited to 'catalog-model/src/main/java/org')
-rw-r--r-- | catalog-model/src/main/java/org/openecomp/sdc/be/model/DataTypeDefinition.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/DataTypeDefinition.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/DataTypeDefinition.java index 4dc952d59b..a54e3264e2 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/DataTypeDefinition.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/DataTypeDefinition.java @@ -20,6 +20,7 @@ package org.openecomp.sdc.be.model; +import org.openecomp.sdc.be.dao.utils.CollectionUtils; import org.openecomp.sdc.be.datatypes.elements.DataTypeDataDefinition; import org.openecomp.sdc.be.datatypes.elements.PropertyDataDefinition; @@ -55,6 +56,10 @@ public class DataTypeDefinition extends DataTypeDataDefinition { return constraints; } + public List<PropertyConstraint> safeGetConstraints() { + return CollectionUtils.safeGetList(constraints); + } + public void setConstraints(List<PropertyConstraint> constraints) { this.constraints = constraints; } |