bc64e4198562011f1a86cb6a3a142e254ebe31f1
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 9
Refactorings reported:
| Refactoring Name | Occurences | ||
|---|---|---|---|
| Rename Method | 2 | ||
| Rename Method public setTimeout(timeout int) : RequestInfo renamed to public setReadTimeout(timeout int) : RequestInfo in class com.shinemo.mpush.netty.client.RequestInfo | From | To | |
| Rename Method public getTimeout() : int renamed to public getReadTimeout() : int in class com.shinemo.mpush.netty.client.RequestInfo | From | To | |
| Rename Variable | 1 | ||
| Rename Variable requestInfo : RequestInfo to info : RequestInfo in method public operationComplete(future ChannelFuture) : void in class com.shinemo.mpush.netty.client.NettyHttpClient.writeRequest.addListener | From | To | |
| Rename Attribute | 3 | ||
| Rename Attribute wheelTimer : Timer to timer : Timer in class com.shinemo.mpush.netty.connection.NettyConnectionManager | From | To | |
| Rename Attribute timeout : int to readTimeout : int in class com.shinemo.mpush.netty.client.RequestInfo | From | To | |
| Rename Attribute key : AttributeKey<RequestInfo> to requestKey : AttributeKey<RequestInfo> in class com.shinemo.mpush.netty.client.NettyHttpClient | From | To | |
| Inline Variable | 1 | ||
| Inline Variable request : HttpRequest in method public request(info RequestInfo) : void from class com.shinemo.mpush.netty.client.NettyHttpClient | From | To | |
| Change Attribute Type | 2 | ||
| Change Attribute Type httpClient : NettyHttpClient to httpClient : HttpClient in class com.shinemo.mpush.core.handler.HttpProxyHandler | From | To | |
| Change Attribute Type request : HttpRequest to request : FullHttpRequest in class com.shinemo.mpush.netty.client.RequestInfo | From | To | |
| Extract And Move Method | 4 | ||
| Extract And Move Method public onRedirect(response HttpResponse) : boolean extracted from public channelRead(ctx ChannelHandlerContext, msg Object) : void in class com.shinemo.mpush.netty.client.NettyHttpClient.HttpClientHandler & moved to class com.shinemo.mpush.netty.client.RequestInfo | From | To | |
| Extract And Move Method public onException(throwable Throwable) : void extracted from public exceptionCaught(ctx ChannelHandlerContext, cause Throwable) : void in class com.shinemo.mpush.netty.client.NettyHttpClient.HttpClientHandler & moved to class com.shinemo.mpush.netty.client.RequestInfo | From | To | |
| Extract And Move Method public onFailure(statusCode int, reasonPhrase String) : void extracted from public request(info RequestInfo) : void in class com.shinemo.mpush.netty.client.NettyHttpClient & moved to class com.shinemo.mpush.netty.client.RequestInfo | From | To | |
| Extract And Move Method public onResponse(response HttpResponse) : void extracted from public channelRead(ctx ChannelHandlerContext, msg Object) : void in class com.shinemo.mpush.netty.client.NettyHttpClient.HttpClientHandler & moved to class com.shinemo.mpush.netty.client.RequestInfo | From | To |