aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorSooriyaa <soponraj@in.ibm.com>2018-09-04 11:34:58 +0530
committerSooriyaa <soponraj@in.ibm.com>2018-09-04 11:35:14 +0530
commitdfdc592d6e6abd9c6200e1971b81f63d20d19f3c (patch)
tree0c4357918ac7dece9b966d36a3e365b4e92b08fd /src/main
parent36e2dab449eae8ede28200f95bfaec2ab23bd486 (diff)
Removing the literal true boolean value
Removing the literal true boolean value Issue-ID: MUSIC-125 Change-Id: Id126541571cc3eb2475f064421b0baaeada8e0e7 Signed-off-by: Sooriyaa <soponraj@in.ibm.com>
Diffstat (limited to 'src/main')
-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 c97ccfab..8ddf1c22 100644
--- a/src/main/java/org/onap/music/conductor/conditionals/MusicConditional.java
+++ b/src/main/java/org/onap/music/conductor/conditionals/MusicConditional.java
@@ -122,7 +122,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) {
@@ -181,7 +181,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) {