summaryrefslogtreecommitdiffstats
path: root/auth/auth-batch
diff options
context:
space:
mode:
authorJonathan Gathman <jonathan.gathman@att.com>2018-11-28 12:41:09 +0000
committerGerrit Code Review <gerrit@onap.org>2018-11-28 12:41:09 +0000
commitf875817225c95683aa30e40a0aa9dd619c3bc9b5 (patch)
tree718812b53a00f8065d147e64e08265ad052f4417 /auth/auth-batch
parentf723a248e1ba1a8f7584fcffbdefaa4fe2719cde (diff)
parent0a6214b973ecb90cd19640cb2804d2d88e1691d0 (diff)
Merge "Sonar Fix: CassBatch.java"
Diffstat (limited to 'auth/auth-batch')
-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) {