From 40f1980bd19c56432100b883f75810760d7713a1 Mon Sep 17 00:00:00 2001 From: Thugutla sailakshmi Date: Tue, 24 Sep 2019 23:17:20 +0530 Subject: Extract the assignment out of this expression Extract the assignment out of this expression Issue-ID: AAF-876 Change-Id: Ia6d41e55102b6f24da354149a40796d0b7dd47e1 Signed-off-by: Thugutla sailakshmi --- .../src/main/java/org/onap/aaf/auth/batch/update/Extend.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'auth/auth-batch/src/main/java/org') diff --git a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/update/Extend.java b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/update/Extend.java index 9e080b69..0077e9fc 100644 --- a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/update/Extend.java +++ b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/update/Extend.java @@ -138,7 +138,8 @@ public class Extend extends Batch { int i = hi.get(); StringBuilder sb = hsb.get(); if(sb==null) { - hsb.set(sb=cqlBatch.begin()); + sb=cqlBatch.begin(); + hsb.set(sb); } switch(row.get(0)) { case "info": -- cgit 1.2.3-korg