summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2018-11-20 13:26:45 +0530
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>2018-11-20 13:27:17 +0530
commit0a6214b973ecb90cd19640cb2804d2d88e1691d0 (patch)
treeb89e8a8a0279f391c1a123b7ad0001f733e48139
parent5ecadc6efb0c37f7d73b43bf57706200635aadf9 (diff)
Sonar Fix: CassBatch.java
Fixed sonar issues/code-smells across this file Issue-ID: AAF-635 Change-Id: I0e792b2bd635e8cd4268b8e5355a54c346f63731 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
-rw-r--r--auth/auth-batch/src/main/java/org/onap/aaf/auth/CassBatch.java8
1 files changed, 6 insertions, 2 deletions
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) {