From 713c53713baeb623f82f3c76cdd35619490e3622 Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Tue, 3 Jul 2018 09:27:02 -0400 Subject: Fix sonar issues on new code Removed new technical debt. Change-Id: I04e86b85897ab42deca17ecee55f29d48cc24427 Issue-ID: POLICY-872 Signed-off-by: Jim Hahn --- .../main/java/org/onap/policy/drools/core/lock/SimpleLockManager.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'policy-core/src/main/java') 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); } } } -- cgit 1.2.3-korg