aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornoahs <noah.shogan@amdocs.com>2019-06-30 10:28:41 +0300
committerOren Kleks <orenkle@amdocs.com>2019-07-16 07:18:07 +0000
commita2b6793397b5cd14e7eb636198ff13ddeee920bf (patch)
tree461bc48629f943fe60ad39bd74fb43de8e3abac7
parent1fbaac4f40e478b87e656c485a84097acece3a28 (diff)
Add Lombok support to Repository
add @Data annotation Change-Id: I0a56a2f1978035a00eb4edafd5ecc7db6a7301a4 Issue-ID: SDC-2401 Signed-off-by: noahs <noah.shogan@amdocs.com>
-rw-r--r--common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Repository.java33
1 files changed, 6 insertions, 27 deletions
diff --git a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Repository.java b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Repository.java
index 32d5d1d3e4..d71731742f 100644
--- a/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Repository.java
+++ b/common/onap-tosca-datatype/src/main/java/org/onap/sdc/tosca/datatypes/model/Repository.java
@@ -20,33 +20,12 @@
package org.onap.sdc.tosca.datatypes.model;
-public class Repository {
-
- private String description;
- private String url;
- private Credential credential;
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
+import lombok.Data;
- public String getUrl() {
- return url;
- }
-
- public void setUrl(String url) {
- this.url = url;
- }
-
- public Credential getCredential() {
- return credential;
- }
+@Data
+public class Repository {
- public void setCredential(Credential credential) {
- this.credential = credential;
- }
+ private String description;
+ private String url;
+ private Credential credential;
}