X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-broker%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fbinding%2Fcompat%2FDelegatedRootRpcRegistration.java;h=aa94e219f69dff319499bc2a25dd0d016b948fb2;hb=70cd4b01dd47a66c5591e6f8151430bb9c274a09;hp=1c3e6d89ee62e685b363a21953f572b4af6d1022;hpb=81d69b64c20a8e17279a57920beab854922c668c;p=controller.git diff --git a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/DelegatedRootRpcRegistration.java b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/DelegatedRootRpcRegistration.java index 1c3e6d89ee..aa94e219f6 100644 --- a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/DelegatedRootRpcRegistration.java +++ b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/DelegatedRootRpcRegistration.java @@ -7,7 +7,6 @@ */ package org.opendaylight.controller.md.sal.binding.compat; -import com.google.common.base.Throwables; import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.RpcRegistration; import org.opendaylight.yangtools.concepts.ObjectRegistration; import org.opendaylight.yangtools.yang.binding.RpcService; @@ -17,7 +16,7 @@ final class DelegatedRootRpcRegistration implements RpcReg private final ObjectRegistration delegate; private final Class type; - public DelegatedRootRpcRegistration(final Class type,final ObjectRegistration impl) { + DelegatedRootRpcRegistration(final Class type, final ObjectRegistration impl) { this.delegate = impl; this.type = type; } @@ -25,12 +24,7 @@ final class DelegatedRootRpcRegistration implements RpcReg @Override public void close() { - try { - // FIXME: Should use more specific registration object. - delegate.close(); - } catch (final Exception e) { - throw Throwables.propagate(e); - } + delegate.close(); } @Override @@ -42,5 +36,4 @@ final class DelegatedRootRpcRegistration implements RpcReg public Class getServiceType() { return type; } - }