From 4caa8d634f2796047e185f572c313745e2236120 Mon Sep 17 00:00:00 2001 From: anushadasari Date: Mon, 18 Nov 2019 20:36:16 +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: I1981c27fe53a08075d8d2048eafc936e64b7b48b Signed-off-by: anushadasari --- .../java/org/onap/optf/cmso/optimizer/service/rs/AdminToolImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cmso-optimizer') diff --git a/cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/service/rs/AdminToolImpl.java b/cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/service/rs/AdminToolImpl.java index 93da842..2aea09c 100644 --- a/cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/service/rs/AdminToolImpl.java +++ b/cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/service/rs/AdminToolImpl.java @@ -53,8 +53,7 @@ public class AdminToolImpl implements AdminTool { return Response.ok("").build(); } String encrypted = PropertiesManagement.getEncryptedValue(id); - Response response = Response.ok(encrypted).build(); - return response; + return Response.ok(encrypted).build(); } } -- cgit 1.2.3-korg