Refactor DTO to implement Lombok
package com.checkmarx.flow.dto;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
import java.util.List;
import java.util.Map;
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+@Builder
public class Issue {
+
private String id;
private String url;
private String title;
@@ -11,60 +21,4 @@ public class Issue {
private String state;
private List<String> labels;
private Map<String, String> metadata;
-
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
- public String getUrl() {
- return url;
- }
-
- public void setUrl(String url) {
- this.url = url;
- }
-
- public String getTitle() {
- return title;
- }
-
- public void setTitle(String title) {
- this.title = title;
- }
-
- public String getBody() {
- return body;
- }
-
- public void setBody(String body) {
- this.body = body;
- }
-
- public String getState() {
- return state;
- }
-
- public void setState(String state) {
- this.state = state;
- }
-
- public List<String> getLabels() {
- return labels;
- }
-
- public void setLabels(List<String> labels) {
- this.labels = labels;
- }
-
- public Map<String, String> getMetadata() {
- return metadata;
- }
-
- public void setMetadata(Map<String, String> metadata) {
- this.metadata = metadata;
- }
}
