aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-server
diff options
context:
space:
mode:
Diffstat (limited to 'sdc-workflow-designer-server')
-rw-r--r--sdc-workflow-designer-server/pom.xml14
-rw-r--r--sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/entity/CommonErrorResponse.java37
2 files changed, 32 insertions, 19 deletions
diff --git a/sdc-workflow-designer-server/pom.xml b/sdc-workflow-designer-server/pom.xml
index 2a78f76f..98733c90 100644
--- a/sdc-workflow-designer-server/pom.xml
+++ b/sdc-workflow-designer-server/pom.xml
@@ -27,13 +27,12 @@
<properties>
<jackson.version>2.9.1</jackson.version>
- <velocity.version>1.6.2</velocity.version>
+ <velocity.version>1.7</velocity.version>
<junit.version>4.10</junit.version>
- <dropwizard.version>1.2.3</dropwizard.version>
- <swagger.version>1.5.3</swagger.version>
+ <dropwizard.version>1.2.4</dropwizard.version>
+ <swagger.version>1.5.18</swagger.version>
<jersey.version>2.16</jersey.version>
<commons-io.version>2.4</commons-io.version>
- <lombok.version>1.16.4</lombok.version>
</properties>
<build>
@@ -147,13 +146,6 @@
<version>${commons-io.version}</version>
</dependency>
- <!-- lombok -->
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <version>${lombok.version}</version>
- </dependency>
-
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/entity/CommonErrorResponse.java b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/entity/CommonErrorResponse.java
index 59ffd602..5983a5a5 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/entity/CommonErrorResponse.java
+++ b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/entity/CommonErrorResponse.java
@@ -12,17 +12,10 @@
package org.onap.sdc.workflowdesigner.utils.entity;
-import lombok.AllArgsConstructor;
-import lombok.Data;
-import lombok.NoArgsConstructor;
-
-@Data
-@NoArgsConstructor
-@AllArgsConstructor
public class CommonErrorResponse {
private String code;
private String message;
-
+
public static Object failure(String message) {
return message;
}
@@ -32,4 +25,32 @@ public class CommonErrorResponse {
this.message = message;
}
+ /**
+ * @return the code
+ */
+ public String getCode() {
+ return code;
+ }
+
+ /**
+ * @param code the code to set
+ */
+ public void setCode(String code) {
+ this.code = code;
+ }
+
+ /**
+ * @return the message
+ */
+ public String getMessage() {
+ return message;
+ }
+
+ /**
+ * @param message the message to set
+ */
+ public void setMessage(String message) {
+ this.message = message;
+ }
+
}