commit | ff66374c6adb1b4566fbdac08f0c5d5f599999b4 | [log] [tgz] |
---|---|---|
author | Simon Hunt <simon@onlab.us> | Thu May 14 13:33:05 2015 -0700 |
committer | Simon Hunt <simon@onlab.us> | Thu May 14 13:33:05 2015 -0700 |
tree | 80f563e3b8279b759188ed83c655ac731d2d82d6 | |
parent | 32b937014b0923eaef1b593fb1caf14cd946ca24 [diff] [blame] |
Renamed AbstractListenerRegistry to ListenerRegistry (since it is not abstract). - added checkForNonRegistrant() predicate and augmented unit tests. Change-Id: I7ecc618f01fdc4cead6f143a1e5e0ddd03268efc
diff --git a/web/gui/src/main/java/org/onosproject/ui/impl/topo/TopoUiModelManager.java b/web/gui/src/main/java/org/onosproject/ui/impl/topo/TopoUiModelManager.java index c80c2e2..3c355ab 100644 --- a/web/gui/src/main/java/org/onosproject/ui/impl/topo/TopoUiModelManager.java +++ b/web/gui/src/main/java/org/onosproject/ui/impl/topo/TopoUiModelManager.java
@@ -143,12 +143,7 @@ @Override public void removeListener(TopoUiListener listener) { - // we don't really care if the listener is not listed... - try { - listenerRegistry.removeListener(listener); - } catch (IllegalArgumentException e) { - log.debug("Oops, listener not registered: {}", listener); - } + listenerRegistry.removeListener(listener); } @Override