From 57453f82af014148e7be6cb025069123c0a27672 Mon Sep 17 00:00:00 2001 From: Thugutla sailakshmi Date: Mon, 14 Oct 2019 21:27:53 +0530 Subject: CredDAO.java -Extract the assignment out of expression Extract the assignment out of expression Issue-ID: AAF-876 Change-Id: Ie26c0aad072316e24466f4e34ae8cc5014cf7dd5 Signed-off-by: Thugutla sailakshmi --- auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cass/CredDAO.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'auth/auth-cass/src/main') diff --git a/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cass/CredDAO.java b/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cass/CredDAO.java index 71401882..5acc836e 100644 --- a/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cass/CredDAO.java +++ b/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cass/CredDAO.java @@ -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 { @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; -- cgit 1.2.3-korg