diff options
author | xuegao <xg353y@intl.att.com> | 2020-06-18 12:00:35 +0200 |
---|---|---|
committer | Ofir Sonsino <ofir.sonsino@intl.att.com> | 2020-06-19 11:16:21 +0000 |
commit | 6152e450f7164c0a8e84da63e354c8c0ffccb237 (patch) | |
tree | f9bdf8c2c3c5e013da110fac15902ded7676e0c1 /openecomp-be/lib/openecomp-heat-lib | |
parent | 61aa954c94ddb1b60cb57d1c9d4b0908e0929487 (diff) |
Remove unused method
Removing unused method in Constraint and use lombok annotations instead.
Issue-ID: SDC-3130
Signed-off-by: xuegao <xg353y@intl.att.com>
Change-Id: Ia718d184c55d40503f42830966bb11675b7c3f85
Signed-off-by: xuegao <xg353y@intl.att.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-heat-lib')
-rw-r--r-- | openecomp-be/lib/openecomp-heat-lib/src/main/java/org/openecomp/sdc/heat/datatypes/model/Constraint.java | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/openecomp-be/lib/openecomp-heat-lib/src/main/java/org/openecomp/sdc/heat/datatypes/model/Constraint.java b/openecomp-be/lib/openecomp-heat-lib/src/main/java/org/openecomp/sdc/heat/datatypes/model/Constraint.java index b3658bf5b1..13b3fac170 100644 --- a/openecomp-be/lib/openecomp-heat-lib/src/main/java/org/openecomp/sdc/heat/datatypes/model/Constraint.java +++ b/openecomp-be/lib/openecomp-heat-lib/src/main/java/org/openecomp/sdc/heat/datatypes/model/Constraint.java @@ -25,9 +25,11 @@ import java.util.List; import lombok.AccessLevel; import lombok.Data; +import lombok.NoArgsConstructor; import lombok.Setter; @Data +@NoArgsConstructor public class Constraint { private Object[] length; @@ -36,22 +38,7 @@ public class Constraint { private List<Object> validValues; private String pattern; - public Constraint() { - } - public void setRange(Integer[] inRange) { this.range = new Integer[] {inRange[0], inRange[1]}; } - - /** - * Add valid value. - * - * @param validValue the valid value - */ - public void addValidValue(Object validValue) { - if (this.validValues == null) { - this.validValues = new ArrayList<>(); - } - validValues.add(validValue); - } } |