* 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>
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 {
* @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> {