diff options
author | Jim Hahn <jrh3@att.com> | 2018-07-03 09:27:02 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2018-07-03 09:27:02 -0400 |
commit | 713c53713baeb623f82f3c76cdd35619490e3622 (patch) | |
tree | c3d467308963cbe43e85685fb6d62979feb4440c /policy-core/src/main | |
parent | 1ed1beaaa4466fb55d7dba3e029b583b835b8aaf (diff) |
Fix sonar issues on new code
Removed new technical debt.
Change-Id: I04e86b85897ab42deca17ecee55f29d48cc24427
Issue-ID: POLICY-872
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'policy-core/src/main')
-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); } } } |