From 0a6214b973ecb90cd19640cb2804d2d88e1691d0 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Tue, 20 Nov 2018 13:26:45 +0530 Subject: Sonar Fix: CassBatch.java Fixed sonar issues/code-smells across this file Issue-ID: AAF-635 Change-Id: I0e792b2bd635e8cd4268b8e5355a54c346f63731 Signed-off-by: Arundathi Patil --- auth/auth-batch/src/main/java/org/onap/aaf/auth/CassBatch.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'auth/auth-batch/src/main/java') diff --git a/auth/auth-batch/src/main/java/org/onap/aaf/auth/CassBatch.java b/auth/auth-batch/src/main/java/org/onap/aaf/auth/CassBatch.java index e80eada1..4ebb3a94 100644 --- a/auth/auth-batch/src/main/java/org/onap/aaf/auth/CassBatch.java +++ b/auth/auth-batch/src/main/java/org/onap/aaf/auth/CassBatch.java @@ -60,9 +60,13 @@ public abstract class CassBatch extends Batch { public ResultSet executeQuery(String cql, String extra) { if (isDryRun() && !cql.startsWith("SELECT")) { - if (extra!=null)env.info().log("Would query" + extra + ": " + cql); + if (extra!=null) { + env.info().log("Would query" + extra + ": " + cql); + } } else { - if (extra!=null)env.info().log("query" + extra + ": " + cql); + if (extra!=null) { + env.info().log("query" + extra + ": " + cql); + } try { return session.execute(cql); } catch (InvalidQueryException e) { -- cgit 1.2.3-korg