aboutsummaryrefslogtreecommitdiffstats
path: root/cmso-optimizer/src
diff options
context:
space:
mode:
authoranushadasari <danush10@in.ibm.com>2019-11-18 20:41:50 +0530
committeranushadasari <danush10@in.ibm.com>2019-11-18 20:42:01 +0530
commitae91a5e2c98dce2ef7c6708322c5156c827b9c96 (patch)
treecf167413f227faac7d78711842650307ad7d09c7 /cmso-optimizer/src
parent4caa8d634f2796047e185f572c313745e2236120 (diff)
Immediately return this expression
Immediately return this expression instead of assigning it to the temporary variable "json". Issue-ID: OPTFRA-644 Change-Id: I4515ede48c265d48875dcbdd875566a1e972f48d Signed-off-by: anushadasari <danush10@in.ibm.com>
Diffstat (limited to 'cmso-optimizer/src')
-rw-r--r--cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/common/BasicAuthenticatorFilter.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/common/BasicAuthenticatorFilter.java b/cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/common/BasicAuthenticatorFilter.java
index 20a6b21..f098ed2 100644
--- a/cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/common/BasicAuthenticatorFilter.java
+++ b/cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/common/BasicAuthenticatorFilter.java
@@ -102,8 +102,7 @@ public class BasicAuthenticatorFilter implements ClientRequestFilter {
private static String getToken(String auth) {
try {
- String token = new String(DatatypeConverter.parseBase64Binary(auth));
- return token;
+ return new String(DatatypeConverter.parseBase64Binary(auth));
} catch (Exception e) {
return auth;
}