Removing the literal true boolean value 15/64315/1
authorSooriyaa <soponraj@in.ibm.com>
Tue, 4 Sep 2018 06:04:58 +0000 (11:34 +0530)
committerSooriyaa <soponraj@in.ibm.com>
Tue, 4 Sep 2018 06:05:14 +0000 (11:35 +0530)
Removing the literal true boolean value

Issue-ID: MUSIC-125
Change-Id: Id126541571cc3eb2475f064421b0baaeada8e0e7
Signed-off-by: Sooriyaa <soponraj@in.ibm.com>
src/main/java/org/onap/music/conductor/conditionals/MusicConditional.java

index c97ccfa..8ddf1c2 100644 (file)
@@ -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) {