OAUTHService.java-sonar fix 57/97657/1
authorThugutla sailakshmi <tsaila10@in.ibm.com>
Mon, 28 Oct 2019 17:51:59 +0000 (23:21 +0530)
committerThugutla sailakshmi <tsaila10@in.ibm.com>
Mon, 28 Oct 2019 17:52:12 +0000 (23:22 +0530)
Issue-ID: AAF-876
Change-Id: I7969e0d84252f9ab737c63bdeda296adf7b0018d
Signed-off-by: Thugutla sailakshmi <tsaila10@in.ibm.com>
auth/auth-oauth/src/main/java/org/onap/aaf/auth/oauth/service/OAuthService.java

index 4e1dd5b..a13959f 100644 (file)
@@ -128,7 +128,8 @@ public class OAuthService {
         odd.refresh = AAFToken.toToken(UUID.randomUUID());
         odd.active = true;
         long exp;
-        odd.expires = new Date(exp=(System.currentTimeMillis()+TOK_EXP));
+        exp=(System.currentTimeMillis()+TOK_EXP);
+        odd.expires = new Date(exp);
         odd.exp_sec = exp/1000;
         odd.req_ip = trans.ip();