diff options
author | YuanHu <yuan.hu1@zte.com.cn> | 2018-03-14 14:35:38 +0800 |
---|---|---|
committer | YuanHu <yuan.hu1@zte.com.cn> | 2018-03-14 15:22:41 +0800 |
commit | 56612b4a3ecc19481e5a3e9d1edb202a3a726066 (patch) | |
tree | b2452e9c3b6946d8a2b1450ec1365146c4ce36dc /sdc-workflow-designer-server | |
parent | 249d5131d866d2a20a7903b068438527f17c46e1 (diff) |
Remove lombok to fix license issues.
Remove lombok to fix license issues cheched by Nexus IQ Server.
Issue-ID: SDC-1127
Change-Id: I1a15d695e95e7a2c30fb4febdd3fea6ce95e768c
Signed-off-by: YuanHu <yuan.hu1@zte.com.cn>
Diffstat (limited to 'sdc-workflow-designer-server')
-rw-r--r-- | sdc-workflow-designer-server/pom.xml | 14 | ||||
-rw-r--r-- | sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/utils/entity/CommonErrorResponse.java | 37 |
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; + } + } |