From: Robert Varga Date: Fri, 9 May 2014 10:16:50 +0000 (+0200) Subject: BUG-731: RoutedRegistration.close() should not throw X-Git-Tag: autorelease-tag-v20140601202136_82eb3f9~105^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=4c8bc30b3a357d6a436eda3adfef45126e045679;hp=-c BUG-731: RoutedRegistration.close() should not throw Routed RPC implementations should be allowed to unregister themselves without incurring a checked exceptions. This allows downstream users to elide having to deal with raw Exception. Change-Id: Ia356c6272da3d22a375c954e192f79786ab42395 Signed-off-by: Robert Varga --- 4c8bc30b3a357d6a436eda3adfef45126e045679 diff --git a/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/routing/RoutedRegistration.java b/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/routing/RoutedRegistration.java index 5200c90561..6ce7b5a5c7 100644 --- a/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/routing/RoutedRegistration.java +++ b/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/routing/RoutedRegistration.java @@ -15,4 +15,6 @@ public interface RoutedRegistration, S> extends Registratio void registerPath(C context, P path); void unregisterPath(C context, P path); + @Override + void close(); }