summaryrefslogtreecommitdiffstats
path: root/vnfmarket-be/vnf-sdk-marketplace/src
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2017-09-19 12:11:40 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2017-09-19 12:12:10 +0800
commit7db2dcf63820f4f7a71b62ab6ab888a5c691aa3a (patch)
tree415ed9ea80147daf325664440a434ecd93549a74 /vnfmarket-be/vnf-sdk-marketplace/src
parent58879ab1cece5888d189de2018c645eabcf6d212 (diff)
fix patch 13
major: L21 L29 L31 Change-Id: Ic24944897818bf2f6b13847a9c617e9d09e467e7 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com> Issue-Id: VNFSDK-85
Diffstat (limited to 'vnfmarket-be/vnf-sdk-marketplace/src')
-rw-r--r--vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/common/RestUtil.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/common/RestUtil.java b/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/common/RestUtil.java
index 557428d6..ea157ace 100644
--- a/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/common/RestUtil.java
+++ b/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/common/RestUtil.java
@@ -19,16 +19,17 @@ import javax.ws.rs.core.Response;
public class RestUtil {
-
+ private RestUtil() {
+ }
/**
* get rest exception.
* @param errorMsg error message
* @return Response
*/
public static Response getRestException(String errorMsg) {
- String code = "001";
return Response.status(Response.Status.INTERNAL_SERVER_ERROR)
- .entity(new CommonErrorResponse(errorMsg)).build();
+ .entity(new CommonErrorResponse(errorMsg)).build();
}
}
+