aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Nelson <tn1381@att.com>2018-09-06 15:56:25 +0000
committerGerrit Code Review <gerrit@onap.org>2018-09-06 15:56:25 +0000
commit8cf5586817780cee8dac469d8c6b2af4aed86a5c (patch)
tree73d88dc8c6e7253fd3f12661d885b44f226c3438
parentf60a2f8e0f374769c870644ef78f7ee2938bf2e1 (diff)
parentdfdc592d6e6abd9c6200e1971b81f63d20d19f3c (diff)
Merge "Removing the literal true boolean value"
-rw-r--r--src/main/java/org/onap/music/conductor/conditionals/MusicConditional.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/onap/music/conductor/conditionals/MusicConditional.java b/src/main/java/org/onap/music/conductor/conditionals/MusicConditional.java
index a2c3fd39..994d31bc 100644
--- a/src/main/java/org/onap/music/conductor/conditionals/MusicConditional.java
+++ b/src/main/java/org/onap/music/conductor/conditionals/MusicConditional.java
@@ -123,7 +123,7 @@ public class MusicConditional {
MusicLockState mls = MusicCore.getLockingServiceHandle()
.getLockState(keyspace + "." + tableName + "." + primaryKey);
- if (mls.getLockHolder().equals(lockId) == true) {
+ if (mls.getLockHolder().equals(lockId)) {
try {
results = MusicCore.getDSHandle().executeCriticalGet(queryBank.get(MusicUtil.SELECT));
} catch (Exception e) {
@@ -184,7 +184,7 @@ public class MusicConditional {
MusicLockState mls = MusicCore.getLockingServiceHandle()
.getLockState(keyspace + "." + tableName + "." + primaryKeyValue);
- if (mls.getLockHolder().equals(lockId) == true) {
+ if (mls.getLockHolder().equals(lockId)) {
Row row = MusicCore.getDSHandle().executeCriticalGet(queryBank.get(MusicUtil.SELECT)).one();
if(row != null) {