CredDAO.java -Extract the assignment out of expression 69/97069/1
authorThugutla sailakshmi <tsaila10@in.ibm.com>
Mon, 14 Oct 2019 15:57:53 +0000 (21:27 +0530)
committerThugutla sailakshmi <tsaila10@in.ibm.com>
Mon, 14 Oct 2019 15:58:35 +0000 (21:28 +0530)
Extract the assignment out of expression

Issue-ID: AAF-876
Change-Id: Ie26c0aad072316e24466f4e34ae8cc5014cf7dd5
Signed-off-by: Thugutla sailakshmi <tsaila10@in.ibm.com>
auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cass/CredDAO.java

index 7140188..5acc836 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.
@@ -150,7 +151,8 @@ public class CredDAO extends CassDAOImpl<AuthzTrans,CredDAO.Data> {
         @Override
         protected void body(Data data, int idx, Object[] obj) {
             int i;
-            obj[i=idx] = data.other;
+            i=idx;
+            obj[i] = data.other;
             obj[++i] = data.ns;
             obj[++i] = data.tag;
             obj[++i] = data.notes;