summaryrefslogtreecommitdiffstats
path: root/rulemgt/src/main/java
diff options
context:
space:
mode:
authorGuangrongFu <fu.guangrong@zte.com.cn>2021-06-09 11:00:33 +0800
committerGuangrongFu <fu.guangrong@zte.com.cn>2021-06-09 11:01:00 +0800
commitf689d98b533d7687bbca01a8013bea5cc4e071cc (patch)
treec9145397be6a1a197730599ef538dcad088f4366 /rulemgt/src/main/java
parent73d424de06f1fbd15dff7bad79934799bec91267 (diff)
Fixed an Object Comparison Bug
Change-Id: I2c127f0be662d517bf8e4666ad4729df302b06f9 Issue-ID: HOLMES-442 Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'rulemgt/src/main/java')
-rw-r--r--rulemgt/src/main/java/org/onap/holmes/rulemgt/tools/EngineTools.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/rulemgt/src/main/java/org/onap/holmes/rulemgt/tools/EngineTools.java b/rulemgt/src/main/java/org/onap/holmes/rulemgt/tools/EngineTools.java
index 4896bde..2711d3b 100644
--- a/rulemgt/src/main/java/org/onap/holmes/rulemgt/tools/EngineTools.java
+++ b/rulemgt/src/main/java/org/onap/holmes/rulemgt/tools/EngineTools.java
@@ -65,7 +65,7 @@ public class EngineTools {
Arrays.sort(numOfRules);
for (String ip : ruleNumInEachEngine.keySet()) {
- if (ruleNumInEachEngine.get(ip) == numOfRules[0]) {
+ if (ruleNumInEachEngine.get(ip).equals(numOfRules[0])) {
return ip;
}
}