OAuthTokenDAO.java -there's no need to call "toString() 58/97358/1
authorThugutla sailakshmi <tsaila10@in.ibm.com>
Mon, 21 Oct 2019 09:01:06 +0000 (14:31 +0530)
committerThugutla sailakshmi <tsaila10@in.ibm.com>
Mon, 21 Oct 2019 09:01:23 +0000 (14:31 +0530)
Issue-ID: AAF-876
Change-Id: Ia19a7ba37b299ff90ad8c9191d3a05c143221b9a
Signed-off-by: Thugutla sailakshmi <tsaila10@in.ibm.com>
auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cass/OAuthTokenDAO.java

index a84490d..bda7ef0 100644 (file)
@@ -3,6 +3,7 @@
  * org.onap.aaf
  * ===========================================================================
  * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
+ * Modifications Copyright (C) 2019 IBM.
  * ===========================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -100,7 +101,7 @@ public class OAuthTokenDAO extends CassDAOImpl<AuthzTrans,OAuthTokenDAO.Data> {
         }
 
         public String toString() {
-            return user.toString() + ' ' + id.toString() + ' ' + Chrono.dateTime(expires) + (active?"":"in") + "active";
+            return user + ' ' + id + ' ' + Chrono.dateTime(expires) + (active?"":"in") + "active";
         }
     }