aboutsummaryrefslogtreecommitdiffstats
path: root/policy-core/src
diff options
context:
space:
mode:
authorJorge Hernandez <jh1730@att.com>2018-07-03 22:45:50 +0000
committerGerrit Code Review <gerrit@onap.org>2018-07-03 22:45:50 +0000
commitb65c92040c5acbf9013eccc5c9ce80dbd6587458 (patch)
treeb6521644510edd36ea016035692d8090680cad7a /policy-core/src
parenta7f0a036fe555e0d81938280af31beac70507689 (diff)
parent713c53713baeb623f82f3c76cdd35619490e3622 (diff)
Merge "Fix sonar issues on new code"
Diffstat (limited to 'policy-core/src')
-rw-r--r--policy-core/src/main/java/org/onap/policy/drools/core/lock/SimpleLockManager.java4
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);
}
}
}