Deprecate all MD-SAL APIs
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / md / sal / binding / compat / DelegatedRootRpcRegistration.java
index 1c3e6d89ee62e685b363a21953f572b4af6d1022..1658cf2fd592dcc5b422b13304e1c701e6ebb7b2 100644 (file)
@@ -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
 final class DelegatedRootRpcRegistration<T extends RpcService> implements RpcRegistration<T> {
 
     private final ObjectRegistration<T> delegate;
     private final Class<T> type;
 
-    public DelegatedRootRpcRegistration(final Class<T> type,final ObjectRegistration<T> impl) {
+    DelegatedRootRpcRegistration(final Class<T> type, final ObjectRegistration<T> impl) {
         this.delegate = impl;
         this.type = type;
     }
@@ -25,12 +25,7 @@ final class DelegatedRootRpcRegistration<T extends RpcService> 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<T extends RpcService> implements RpcReg
     public Class<T> getServiceType() {
         return type;
     }
-
 }