summaryrefslogtreecommitdiffstats
path: root/cmso-optimizer
diff options
context:
space:
mode:
authoranushadasari <danush10@in.ibm.com>2019-11-18 20:36:16 +0530
committeranushadasari <danush10@in.ibm.com>2019-11-18 20:36:26 +0530
commit4caa8d634f2796047e185f572c313745e2236120 (patch)
treee5b0b782424af851c77b183454980269e0e4799f /cmso-optimizer
parentb0606086154083bf6c12d8c14cdee077ca5758eb (diff)
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 <danush10@in.ibm.com>
Diffstat (limited to 'cmso-optimizer')
-rw-r--r--cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/service/rs/AdminToolImpl.java3
1 files changed, 1 insertions, 2 deletions
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();
}
}