Mechanical code cleanup (sal-connector-api) 87/46087/3
authorStephen Kitt <skitt@redhat.com>
Thu, 22 Sep 2016 16:26:25 +0000 (18:26 +0200)
committerTom Pantelis <tpanteli@brocade.com>
Fri, 23 Sep 2016 18:44:17 +0000 (18:44 +0000)
* Remove unnecessary type specifiers (use Java 7 <>)
* Remove unnecessary "extends Object" declarations
* Remove unnecessary semi-colons
* Merge identical catch blocks
* Remove redundant modifiers:
  - enum constructors are private by default
  - interface properties are public static final by default
  - interface methods are public abstract by default
  - interfaces are abstract by default
  - inner interfaces are static by default
  - inner classes in interfaces are public static by default

Change-Id: I7771fe4533469229b319c5d0590d26922a389f9e
Signed-off-by: Stephen Kitt <skitt@redhat.com>
opendaylight/md-sal/sal-connector-api/src/main/java/org/opendaylight/controller/sal/connector/api/BindingAwareRpcRouter.java
opendaylight/md-sal/sal-connector-api/src/main/java/org/opendaylight/controller/sal/connector/api/RpcRouter.java

index cf59eb4..c242e0c 100644 (file)
@@ -14,7 +14,7 @@ import org.opendaylight.yangtools.concepts.Immutable;
 public interface BindingAwareRpcRouter extends RpcRouter<String, String, String, byte[]> {
 
     @Override
 public interface BindingAwareRpcRouter extends RpcRouter<String, String, String, byte[]> {
 
     @Override
-    public Future<org.opendaylight.controller.sal.connector.api.RpcRouter.RpcReply<byte[]>> sendRpc(
+    Future<org.opendaylight.controller.sal.connector.api.RpcRouter.RpcReply<byte[]>> sendRpc(
             RpcRequest<String, String, String, byte[]> input);
 
     class BindingAwareRequest implements RpcRequest<String, String, String, byte[]>, Immutable {
             RpcRequest<String, String, String, byte[]> input);
 
     class BindingAwareRequest implements RpcRequest<String, String, String, byte[]>, Immutable {
index fa4c804..f49f7ef 100644 (file)
@@ -34,20 +34,20 @@ public interface RpcRouter<C,T,R,D> {
         * @param <T> Rpc Type
         * @param <D> Data Type
      */
         * @param <T> Rpc Type
         * @param <D> Data Type
      */
-    public interface RpcRequest<C,T,R,D> {
+    interface RpcRequest<C,T,R,D> {
 
         RouteIdentifier<C,T,R> getRoutingInformation();
         D getPayload();
     }
 
 
         RouteIdentifier<C,T,R> getRoutingInformation();
         D getPayload();
     }
 
-    public interface RouteIdentifier<C,T,R> {
+    interface RouteIdentifier<C,T,R> {
 
         C getContext(); // defines a routing table (e.g. NodeContext)
         T getType(); // rpc type
         R getRoute(); // e.g. (node identity)
     }
 
 
         C getContext(); // defines a routing table (e.g. NodeContext)
         T getType(); // rpc type
         R getRoute(); // e.g. (node identity)
     }
 
-    public interface RpcReply<D> {
+    interface RpcReply<D> {
         D getPayload();
     }
 }
         D getPayload();
     }
 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.