commit | 042597f67811ee227fed7e0b9f67103668c52726 | [log] [tgz] |
---|---|---|
author | Jordan Halterman <jordan@opennetworking.org> | Wed Apr 11 17:32:44 2018 -0400 |
committer | Charles Chan <charles@opennetworking.org> | Wed Apr 11 22:22:45 2018 +0000 |
tree | a50bba397c959df940e1d5747f6bf671ee21e483 | |
parent | eaa8b1dcf932518e07d16d4161085654d3d80563 [diff] |
Allow duplicate event sinks to be registered to allow retries of component activation. Change-Id: I892f0efc45239c7399224c3754b640256a9205e9 (cherry picked from commit a255470be96ef72f5a72e1bd80d9744bf5f4cea0)
diff --git a/core/api/src/main/java/org/onosproject/event/DefaultEventSinkRegistry.java b/core/api/src/main/java/org/onosproject/event/DefaultEventSinkRegistry.java index 7e2f551..d934a3b 100644 --- a/core/api/src/main/java/org/onosproject/event/DefaultEventSinkRegistry.java +++ b/core/api/src/main/java/org/onosproject/event/DefaultEventSinkRegistry.java
@@ -36,8 +36,6 @@ public <E extends Event> void addSink(Class<E> eventClass, EventSink<E> sink) { checkNotNull(eventClass, "Event class cannot be null"); checkNotNull(sink, "Event sink cannot be null"); - checkArgument(!sinks.containsKey(eventClass), - "Event sink already registered for %s", eventClass.getName()); sinks.put(eventClass, sink); }