6a159053cad9a7d86e2a0f1d3eb78c1b0be7d21f
Files Diff
- Added: 3
- Removed: 1
- Renamed: 0
- Modified: 24
Refactorings reported:
| Refactoring Name | Occurences | ||
|---|---|---|---|
| Rename Variable | 1 | ||
| Rename Variable cachedResp : ByteBuffer to resp : CachedResp in method private serveFromCache(req ReqImpl) : boolean in class org.rapidoid.http.FastHttp | From | To | |
| Change Return Type | 3 | ||
| Change Return Type Cached<RouteCacheKey,ByteBuffer> to Cached<HTTPCacheKey,CachedResp> in method protected createCache() : Cached<HTTPCacheKey,CachedResp> in class org.rapidoid.http.impl.RouteImpl | From | To | |
| Change Return Type Cached<RouteCacheKey,ByteBuffer> to Cached<HTTPCacheKey,CachedResp> in method public cache() : Cached<HTTPCacheKey,CachedResp> in class org.rapidoid.http.impl.RouteImpl | From | To | |
| Change Return Type Cached<RouteCacheKey,ByteBuffer> to Cached<HTTPCacheKey,CachedResp> in method public cache() : Cached<HTTPCacheKey,CachedResp> in class org.rapidoid.http.Route | From | To | |
| Rename Attribute | 1 | ||
| Rename Attribute posConLen : int to posContentLengthValue : int in class org.rapidoid.http.impl.ReqImpl | From | To | |
| Extract Variable | 1 | ||
| Extract Variable cfg : RouteConfig in method public toString() : String from class org.rapidoid.http.impl.RouteImpl | From | To | |
| Change Variable Type | 1 | ||
| Change Variable Type cachedResp : ByteBuffer to resp : CachedResp in method private serveFromCache(req ReqImpl) : boolean in class org.rapidoid.http.FastHttp | From | To | |
| Change Attribute Type | 1 | ||
| Change Attribute Type cache : Cached<RouteCacheKey,ByteBuffer> to cache : Cached<HTTPCacheKey,CachedResp> in class org.rapidoid.http.impl.RouteImpl | From | To | |
| Inline Variable | 1 | ||
| Inline Variable out : Buf in method private renderResponseHeaders(code int, contentType MediaType, unknownContentLength boolean) : void from class org.rapidoid.http.impl.ReqImpl | From | To | |
| Extract Method | 4 | ||
| Extract Method public closeHeaders(req MaybeReq, out Buf) : void extracted from public writeJsonBody(out Buf, value Object) : void in class org.rapidoid.http.impl.HttpIO | From | To | |
| Extract Method public onHeadersCompleted() : void extracted from private renderResponseHeaders(code int, contentType MediaType, unknownContentLength boolean) : void in class org.rapidoid.http.impl.ReqImpl | From | To | |
| Extract Method private serveFromCache(req ReqImpl) : boolean extracted from public onRequest(channel Channel, data RapidoidHelper) : void in class org.rapidoid.http.FastHttp | From | To | |
| Extract Method private closeHeaders() : void extracted from private renderResponseHeaders(code int, contentType MediaType, unknownContentLength boolean) : void in class org.rapidoid.http.impl.ReqImpl | From | To | |
| Rename Parameter | 2 | ||
| Rename Parameter content : byte[] to body : byte[] in method public writeContentLengthAndBody(req MaybeReq, ctx Channel, body byte[]) : void in class org.rapidoid.http.impl.HttpIO | From | To | |
| Rename Parameter baos : ByteArrayOutputStream to body : ByteArrayOutputStream in method public writeContentLengthAndBody(req MaybeReq, ctx Channel, body ByteArrayOutputStream) : void in class org.rapidoid.http.impl.HttpIO | From | To |