From f8b8f64ca2c06ef9660bfcc77ca2d58e52612c41 Mon Sep 17 00:00:00 2001 From: anushadasari Date: Tue, 19 Nov 2019 11:42:43 +0530 Subject: Immediately return this expression Immediately return this expression instead of assigning it to the temporary variable "json". Issue-ID: OPTFRA-644 Change-Id: Ief8d222a51cb640df6d8b95a87aae9283e700656 Signed-off-by: anushadasari --- .../java/org/onap/optf/cmso/dispatcher/rs/DispatcherServiceImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cmso-service/src') diff --git a/cmso-service/src/main/java/org/onap/optf/cmso/dispatcher/rs/DispatcherServiceImpl.java b/cmso-service/src/main/java/org/onap/optf/cmso/dispatcher/rs/DispatcherServiceImpl.java index 84ff91e..3cf9194 100644 --- a/cmso-service/src/main/java/org/onap/optf/cmso/dispatcher/rs/DispatcherServiceImpl.java +++ b/cmso-service/src/main/java/org/onap/optf/cmso/dispatcher/rs/DispatcherServiceImpl.java @@ -119,8 +119,7 @@ public class DispatcherServiceImpl implements DispacherService { errors.error(LogMessages.UNEXPECTED_EXCEPTION, e.getMessage()); debug.error(e.getMessage(), e); } - Response response = Response.ok().build(); - return response; + return Response.ok().build(); } } -- cgit 1.2.3-korg