From 840eecbf7210d0433d94da895a3a11b97d3a4e6f Mon Sep 17 00:00:00 2001 From: "Rishi.Chail" Date: Mon, 15 Mar 2021 14:36:23 +0000 Subject: Fix code smells 1. removed typedefs annotation 2. chnaged final string constant name Issue-ID: CPS-89 Signed-off-by: Rishi.Chail Change-Id: I524aa8c13e8bb4c6a00d810c6e89b30a48f37d10 --- .../onap/cps/nfproxy/rest/exceptions/NfProxyRestExceptionHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 cps-nf-proxy-rest/src/main/java/org/onap/cps/nfproxy/rest/exceptions/NfProxyRestExceptionHandler.java (limited to 'cps-nf-proxy-rest/src/main') diff --git a/cps-nf-proxy-rest/src/main/java/org/onap/cps/nfproxy/rest/exceptions/NfProxyRestExceptionHandler.java b/cps-nf-proxy-rest/src/main/java/org/onap/cps/nfproxy/rest/exceptions/NfProxyRestExceptionHandler.java old mode 100644 new mode 100755 index ebcb0135ef..ac35e9a1f0 --- a/cps-nf-proxy-rest/src/main/java/org/onap/cps/nfproxy/rest/exceptions/NfProxyRestExceptionHandler.java +++ b/cps-nf-proxy-rest/src/main/java/org/onap/cps/nfproxy/rest/exceptions/NfProxyRestExceptionHandler.java @@ -38,7 +38,7 @@ import org.springframework.web.bind.annotation.RestControllerAdvice; @RestControllerAdvice(assignableTypes = {NfProxyController.class}) public class NfProxyRestExceptionHandler { - private static final String checkLogsForDetails = "Check logs for details."; + private static final String CHECK_LOGS_FOR_DETAILS = "Check logs for details."; /** * Default exception handler. @@ -65,7 +65,7 @@ public class NfProxyRestExceptionHandler { errorMessage.setStatus(status.toString()); errorMessage.setMessage(exception.getMessage()); errorMessage.setDetails(exception instanceof CpsException ? ((CpsException) exception).getDetails() : - checkLogsForDetails); + CHECK_LOGS_FOR_DETAILS); return new ResponseEntity<>(errorMessage, status); } } -- cgit 1.2.3-korg