f3bb5317d4461e84e0cb0fc60f0edac114464ab6
Files Diff
- Added: 2
- Removed: 8
- Renamed: 0
- Modified: 12
Refactorings reported:
| Refactoring Name | Occurences | ||
|---|---|---|---|
| Pull Up Method | 6 | ||
| Pull Up Method private handleResponse(response ByteBuf, context ChannelHandlerContext) : void from class net.kuujo.copycat.raft.protocol.NettyServer.ServerHandlerAdapter to private handleResponse(response ByteBuf, context ChannelHandlerContext) : void from class net.kuujo.copycat.raft.protocol.NettyHandler | From | To | |
| Pull Up Method public channelRead(context ChannelHandlerContext, message Object) : void from class net.kuujo.copycat.raft.protocol.NettyServer.ServerHandlerAdapter to public channelRead(context ChannelHandlerContext, message Object) : void from class net.kuujo.copycat.raft.protocol.NettyHandler | From | To | |
| Pull Up Method private getOrCreateContext(channel Channel) : Context from class net.kuujo.copycat.raft.protocol.NettyServer.ServerHandlerAdapter to private getOrCreateContext(channel Channel) : Context from class net.kuujo.copycat.raft.protocol.NettyHandler | From | To | |
| Pull Up Method protected getConnection(channel Channel) : NettyConnection from class net.kuujo.copycat.raft.protocol.NettyServer.ServerHandlerAdapter to protected getConnection(channel Channel) : NettyConnection from class net.kuujo.copycat.raft.protocol.NettyHandler | From | To | |
| Pull Up Method private handleRequest(request ByteBuf, context ChannelHandlerContext) : void from class net.kuujo.copycat.raft.protocol.NettyServer.ServerHandlerAdapter to private handleRequest(request ByteBuf, context ChannelHandlerContext) : void from class net.kuujo.copycat.raft.protocol.NettyHandler | From | To | |
| Pull Up Method protected removeConnection(channel Channel) : NettyConnection from class net.kuujo.copycat.raft.protocol.NettyServer.ServerHandlerAdapter to protected removeConnection(channel Channel) : NettyConnection from class net.kuujo.copycat.raft.protocol.NettyHandler | From | To | |
| Push Down Method | 1 | ||
| Push Down Method private nextClientId() : int from class net.kuujo.copycat.raft.state.RaftClientState to private nextClientId() : int from class net.kuujo.copycat.raft.state.RaftServerState | From | To | |
| Move Method | 1 | ||
| Move Method private nextClientId() : int from class net.kuujo.copycat.raft.state.RaftClientState to private nextClientId() : int from class net.kuujo.copycat.raft.RaftClient.Builder | From | To | |
| Rename Variable | 1 | ||
| Rename Variable ch : Channel to channel : Channel in method public channelInactive(context ChannelHandlerContext) : void in class net.kuujo.copycat.raft.protocol.NettyHandler | From | To | |
| Push Down Attribute | 1 | ||
| Push Down Attribute private RANDOM : Random from class net.kuujo.copycat.raft.state.RaftClientState to private RANDOM : Random from class net.kuujo.copycat.raft.state.RaftServerState | From | To | |
| Move Attribute | 3 | ||
| Move Attribute private listener : Listener<Connection> from class net.kuujo.copycat.raft.protocol.NettyServer.ListenerHolder to private listener : Listener<Connection> from class net.kuujo.copycat.raft.protocol.NettyHandler | From | To | |
| Move Attribute private context : Context from class net.kuujo.copycat.raft.protocol.NettyServer.ListenerHolder to private context : Context from class net.kuujo.copycat.raft.protocol.NettyHandler | From | To | |
| Move Attribute private RANDOM : Random from class net.kuujo.copycat.raft.state.RaftClientState to private RANDOM : Random from class net.kuujo.copycat.raft.RaftClient.Builder | From | To | |
| Rename Parameter | 1 | ||
| Rename Parameter chctx : ChannelHandlerContext to context : ChannelHandlerContext in method public channelInactive(context ChannelHandlerContext) : void in class net.kuujo.copycat.raft.protocol.NettyHandler | From | To |