summaryrefslogtreecommitdiffstats
path: root/model/engine-model
diff options
context:
space:
mode:
authorwaqas.ikram <waqas.ikram@ericsson.com>2018-05-31 18:02:59 +0100
committerwaqas.ikram <waqas.ikram@ericsson.com>2018-05-31 18:03:02 +0100
commitfa529999c7d6e024cc3c4a478ef089a77e284974 (patch)
tree2dfdf2e93bbe73bf1600ac9b600deeef4a596486 /model/engine-model
parent4822952ca5a073a78c7f70e9a6531971bb3851cb (diff)
Fixing Sonar bugs and Vulnerabilities
Change-Id: I69c65d808133ac75d9f93aa0d63326ca8c67f839 Issue-ID: POLICY-856 Signed-off-by: waqas.ikram <waqas.ikram@ericsson.com>
Diffstat (limited to 'model/engine-model')
-rw-r--r--model/engine-model/src/main/java/org/onap/policy/apex/model/enginemodel/concepts/AxEngineStats.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/model/engine-model/src/main/java/org/onap/policy/apex/model/enginemodel/concepts/AxEngineStats.java b/model/engine-model/src/main/java/org/onap/policy/apex/model/enginemodel/concepts/AxEngineStats.java
index b35492356..077065bb5 100644
--- a/model/engine-model/src/main/java/org/onap/policy/apex/model/enginemodel/concepts/AxEngineStats.java
+++ b/model/engine-model/src/main/java/org/onap/policy/apex/model/enginemodel/concepts/AxEngineStats.java
@@ -491,7 +491,7 @@ public class AxEngineStats extends AxConcept {
if (lastExecutionTime != other.lastExecutionTime) {
return false;
}
- if (averageExecutionTime != other.averageExecutionTime) {
+ if (Double.compare(averageExecutionTime, other.averageExecutionTime) != 0) {
return false;
}
if (upTime != other.upTime) {