From f689d98b533d7687bbca01a8013bea5cc4e071cc Mon Sep 17 00:00:00 2001 From: GuangrongFu Date: Wed, 9 Jun 2021 11:00:33 +0800 Subject: Fixed an Object Comparison Bug Change-Id: I2c127f0be662d517bf8e4666ad4729df302b06f9 Issue-ID: HOLMES-442 Signed-off-by: GuangrongFu --- rulemgt/src/main/java/org/onap/holmes/rulemgt/tools/EngineTools.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rulemgt/src/main/java') 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; } } -- cgit 1.2.3-korg