diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/onap/music/conductor/conditionals/MusicConditional.java | 4 |
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) { |