diff options
author | Rishi.Chail <rishi.chail@est.tech> | 2021-03-15 14:36:23 +0000 |
---|---|---|
committer | Toine Siebelink <toine.siebelink@est.tech> | 2021-03-18 08:56:05 +0000 |
commit | 840eecbf7210d0433d94da895a3a11b97d3a4e6f (patch) | |
tree | c9be7bf3511bb322e5de1a3f96e95e84dc554f8a /cps-rest | |
parent | 55dc654964942aa67c48f09b0ba56059be8e923b (diff) |
Fix code smells
1. removed typedefs annotation
2. chnaged final string constant name
Issue-ID: CPS-89
Signed-off-by: Rishi.Chail <rishi.chail@est.tech>
Change-Id: I524aa8c13e8bb4c6a00d810c6e89b30a48f37d10
Diffstat (limited to 'cps-rest')
-rwxr-xr-x[-rw-r--r--] | cps-rest/src/main/java/org/onap/cps/rest/exceptions/CpsRestExceptionHandler.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cps-rest/src/main/java/org/onap/cps/rest/exceptions/CpsRestExceptionHandler.java b/cps-rest/src/main/java/org/onap/cps/rest/exceptions/CpsRestExceptionHandler.java index 75a45320f8..7719417c13 100644..100755 --- a/cps-rest/src/main/java/org/onap/cps/rest/exceptions/CpsRestExceptionHandler.java +++ b/cps-rest/src/main/java/org/onap/cps/rest/exceptions/CpsRestExceptionHandler.java @@ -42,7 +42,7 @@ import org.springframework.web.bind.annotation.RestControllerAdvice; QueryRestController.class}) public class CpsRestExceptionHandler { - private static final String checkLogsForDetails = "Check logs for details."; + private static final String CHECK_LOGS_FOR_DETAILS = "Check logs for details."; private CpsRestExceptionHandler() { } @@ -88,7 +88,7 @@ public class CpsRestExceptionHandler { 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); } } |