aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}
}
}