X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-broker%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fbinding%2Fcompat%2FDelegatedRootRpcRegistration.java;h=52d4425921ae1e18946d71c7ee53036b3b45eb70;hp=1c3e6d89ee62e685b363a21953f572b4af6d1022;hb=2a6aa1775604906755883f810ee9ea6d5f286135;hpb=81d69b64c20a8e17279a57920beab854922c668c 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..52d4425921 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,17 +7,17 @@ */ 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; +@Deprecated(forRemoval = true) final class DelegatedRootRpcRegistration implements RpcRegistration { 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 +25,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 +37,4 @@ final class DelegatedRootRpcRegistration implements RpcReg public Class getServiceType() { return type; } - }