commit | 8ca53901fe74f1205890e79fb41f8d0b229068e2 | [log] [tgz] |
---|---|---|
author | alshabib <alshabibi.ali@gmail.com> | Tue Oct 07 13:11:17 2014 -0700 |
committer | alshabib <alshabibi.ali@gmail.com> | Tue Oct 07 13:11:17 2014 -0700 |
tree | 89cfefb134c9200b055aef9776fdf8632419142a | |
parent | 58747a6a5ae0731e56acc9c09ef19975efa29464 [diff] [blame] |
added hashcode and equals to treatments UnmodifiableCollection can be bad in a hashCode Change-Id: I55700541dc7ab46b21e5e9e9cc19c70f0c7f7494
diff --git a/core/store/trivial/src/main/java/org/onlab/onos/store/trivial/impl/SimpleFlowRuleStore.java b/core/store/trivial/src/main/java/org/onlab/onos/store/trivial/impl/SimpleFlowRuleStore.java index 833d6a6..7ff797c 100644 --- a/core/store/trivial/src/main/java/org/onlab/onos/store/trivial/impl/SimpleFlowRuleStore.java +++ b/core/store/trivial/src/main/java/org/onlab/onos/store/trivial/impl/SimpleFlowRuleStore.java
@@ -103,6 +103,7 @@ public synchronized void deleteFlowRule(FlowRule rule) { FlowEntry entry = getFlowEntry(rule); if (entry == null) { + //log.warn("Cannot find rule {}", rule); return; } entry.setState(FlowEntryState.PENDING_REMOVE); @@ -125,7 +126,7 @@ return new FlowRuleEvent(Type.RULE_UPDATED, rule); } - flowEntries.put(did, rule); + //flowEntries.put(did, rule); return null; }