Fix sonar issues on new code 99/55699/1
authorJim Hahn <jrh3@att.com>
Tue, 3 Jul 2018 13:27:02 +0000 (09:27 -0400)
committerJim Hahn <jrh3@att.com>
Tue, 3 Jul 2018 13:27:02 +0000 (09:27 -0400)
Removed new technical debt.

Change-Id: I04e86b85897ab42deca17ecee55f29d48cc24427
Issue-ID: POLICY-872
Signed-off-by: Jim Hahn <jrh3@att.com>
policy-core/src/main/java/org/onap/policy/drools/core/lock/SimpleLockManager.java

index 79fa0a7..2a44ddc 100644 (file)
@@ -330,9 +330,7 @@ public class SimpleLockManager {
                     return false;
             } else if (!resource.equals(other.resource))
                 return false;
-            if (texpireMs != other.texpireMs)
-                return false;
-            return true;
+            return (texpireMs == other.texpireMs);
         }
     }
 }