14ef02972122e42114b758e57335f8ea5d42113c
Files Diff
- Added: 8
- Removed: 1
- Renamed: 0
- Modified: 33
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 2 | ||
Rename Method public startRendering(code int, unknownContentLength boolean) : void renamed to public doRendering(code int, responseBody byte[]) : void in class org.rapidoid.http.impl.ReqImpl | From | To | |
Rename Method private startResponse(code int, unknownContentLength boolean) : void renamed to private respond(code int, responseBody byte[]) : void in class org.rapidoid.http.impl.ReqImpl | From | To | |
Change Parameter Type | 3 | ||
Change Parameter Type len : int to contentLength : long in method package writeContentLengthHeader(ctx Channel, contentLength long) : void in class org.rapidoid.http.impl.lowlevel.LowLevelHttpIO | From | To | |
Change Parameter Type unknownContentLength : boolean to responseBody : byte[] in method public doRendering(code int, responseBody byte[]) : void in class org.rapidoid.http.impl.ReqImpl | From | To | |
Change Parameter Type unknownContentLength : boolean to responseBody : byte[] in method private respond(code int, responseBody byte[]) : void in class org.rapidoid.http.impl.ReqImpl | From | To | |
Rename Variable | 1 | ||
Rename Variable bytes : byte[] to body : byte[] in method private internalServerError(channel Channel, isKeepAlive boolean, req Req) : void in class org.rapidoid.http.FastHttp | From | To | |
Move And Rename Class | 1 | ||
Move And Rename Class org.rapidoid.http.impl.HttpIO moved and renamed to org.rapidoid.http.impl.lowlevel.LowLevelHttpIO | From | To | |
Change Variable Type | 2 | ||
Change Variable Type contentLength : int to contentLength : long in method private writeResponseLength() : void in class org.rapidoid.http.impl.ReqImpl | From | To | |
Change Variable Type posAfter : int to posAfter : long in method private writeResponseLength() : void in class org.rapidoid.http.impl.ReqImpl | From | To | |
Extract Variable | 3 | ||
Extract Variable code : int in method private saveToCache() : void from class org.rapidoid.http.impl.ReqImpl | From | To | |
Extract Variable files : File[] in method public setRoot(root String) : void from class org.rapidoid.env.Env | From | To | |
Extract Variable contentType : MediaType in method private saveToCache() : void from class org.rapidoid.http.impl.ReqImpl | From | To | |
Extract Method | 1 | ||
Extract Method private writeOp(key SelectionKey, conn RapidoidConnection, socketChannel SocketChannel) : void extracted from protected writeOP(key SelectionKey) : void in class org.rapidoid.net.impl.RapidoidWorker | From | To | |
Change Attribute Type | 2 | ||
Change Attribute Type posContentLengthValue : int to posContentLengthValue : long in class org.rapidoid.http.impl.ReqImpl | From | To | |
Change Attribute Type posBeforeBody : int to posBeforeBody : long in class org.rapidoid.http.impl.ReqImpl | From | To | |
Rename Parameter | 3 | ||
Rename Parameter unknownContentLength : boolean to responseBody : byte[] in method private respond(code int, responseBody byte[]) : void in class org.rapidoid.http.impl.ReqImpl | From | To | |
Rename Parameter unknownContentLength : boolean to responseBody : byte[] in method public doRendering(code int, responseBody byte[]) : void in class org.rapidoid.http.impl.ReqImpl | From | To | |
Rename Parameter len : int to contentLength : long in method package writeContentLengthHeader(ctx Channel, contentLength long) : void in class org.rapidoid.http.impl.lowlevel.LowLevelHttpIO | From | To |