From 7db2dcf63820f4f7a71b62ab6ab888a5c691aa3a Mon Sep 17 00:00:00 2001 From: Harry Huang Date: Tue, 19 Sep 2017 12:11:40 +0800 Subject: fix patch 13 major: L21 L29 L31 Change-Id: Ic24944897818bf2f6b13847a9c617e9d09e467e7 Signed-off-by: Harry Huang Issue-Id: VNFSDK-85 --- .../src/main/java/org/onap/vnfsdk/marketplace/common/RestUtil.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'vnfmarket-be') 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(); } } + -- cgit 1.2.3-korg