From ae91a5e2c98dce2ef7c6708322c5156c827b9c96 Mon Sep 17 00:00:00 2001 From: anushadasari Date: Mon, 18 Nov 2019 20:41:50 +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: I4515ede48c265d48875dcbdd875566a1e972f48d Signed-off-by: anushadasari --- .../org/onap/optf/cmso/optimizer/common/BasicAuthenticatorFilter.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cmso-optimizer/src/main/java/org/onap') 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; } -- cgit 1.2.3-korg