From 2a4f3895fdbb015f874e7628481f5c78a294fbd8 Mon Sep 17 00:00:00 2001 From: Thugutla sailakshmi Date: Mon, 28 Oct 2019 23:21:59 +0530 Subject: OAUTHService.java-sonar fix Issue-ID: AAF-876 Change-Id: I7969e0d84252f9ab737c63bdeda296adf7b0018d Signed-off-by: Thugutla sailakshmi --- .../src/main/java/org/onap/aaf/auth/oauth/service/OAuthService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'auth/auth-oauth/src/main/java/org') diff --git a/auth/auth-oauth/src/main/java/org/onap/aaf/auth/oauth/service/OAuthService.java b/auth/auth-oauth/src/main/java/org/onap/aaf/auth/oauth/service/OAuthService.java index 4e1dd5b9..a13959f1 100644 --- a/auth/auth-oauth/src/main/java/org/onap/aaf/auth/oauth/service/OAuthService.java +++ b/auth/auth-oauth/src/main/java/org/onap/aaf/auth/oauth/service/OAuthService.java @@ -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(); -- cgit 1.2.3-korg