diff options
author | Jorge Hernandez <jh1730@att.com> | 2018-07-03 22:45:50 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-07-03 22:45:50 +0000 |
commit | b65c92040c5acbf9013eccc5c9ce80dbd6587458 (patch) | |
tree | b6521644510edd36ea016035692d8090680cad7a | |
parent | a7f0a036fe555e0d81938280af31beac70507689 (diff) | |
parent | 713c53713baeb623f82f3c76cdd35619490e3622 (diff) |
Merge "Fix sonar issues on new code"
-rw-r--r-- | policy-core/src/main/java/org/onap/policy/drools/core/lock/SimpleLockManager.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/policy-core/src/main/java/org/onap/policy/drools/core/lock/SimpleLockManager.java b/policy-core/src/main/java/org/onap/policy/drools/core/lock/SimpleLockManager.java index 79fa0a7d..2a44ddcd 100644 --- a/policy-core/src/main/java/org/onap/policy/drools/core/lock/SimpleLockManager.java +++ b/policy-core/src/main/java/org/onap/policy/drools/core/lock/SimpleLockManager.java @@ -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); } } } |