Fix checkstyle violations in sal-binding-broker
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / md / sal / binding / compat / DelegatedRootRpcRegistration.java
index 1c3e6d89ee62e685b363a21953f572b4af6d1022..aa94e219f69dff319499bc2a25dd0d016b948fb2 100644 (file)
@@ -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<T extends RpcService> implements RpcReg
     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 +24,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 +36,4 @@ final class DelegatedRootRpcRegistration<T extends RpcService> implements RpcReg
     public Class<T> getServiceType() {
         return type;
     }
-
 }