24d71b9c3b28b7f7eec58a42b6465517282ea987
Files Diff
- Added: 3
- Removed: 0
- Renamed: 0
- Modified: 7
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 2 | ||
Rename Method public getName() : String renamed to public getShortName() : String in class org.rapidoid.io.Res | From | To | |
Rename Method public testWithExistingFiles() : void renamed to public testWhereDefaultsDontExist() : void in class org.rapidoid.io.ResTest | From | To | |
Rename Variable | 2 | ||
Rename Variable oldBytes : byte[] to old : byte[] in method protected loadResource() : void in class org.rapidoid.io.Res | From | To | |
Rename Variable resource : Res to res : Res in method public serveDynamicPage(x HttpExchangeImpl, result Object, hasEvent boolean, config Map<String,Object>) : boolean in class org.rapidoid.app.AppHandler | From | To | |
Extract Variable | 2 | ||
Extract Variable defaultFile : String in method public serveStaticFile(filename String) : boolean from class org.rapidoid.http.HttpExchangeImpl | From | To | |
Extract Variable defaultFile : String in method public getReader(resourceName String) : Reader from class org.rapidoid.plugins.templates.RapidoidMustacheFactory | From | To | |
Split Attribute | 1 | ||
Split Attribute name : String to [filenames : Set<String>, shortName : String] in class org.rapidoid.io.Res | From | To | |
Extract Method | 4 | ||
Extract Method private mustExist() : void extracted from public getContent() : String in class org.rapidoid.io.Res | From | To | |
Extract Method private mustExist() : void extracted from public getBytes() : byte[] in class org.rapidoid.io.Res | From | To | |
Extract Method public from(shortName String, withDefaults boolean, filenames String...) : Res extracted from public from(filename String) : Res in class org.rapidoid.io.Res | From | To | |
Extract Method private mustExist() : void extracted from public getReader() : Reader in class org.rapidoid.io.Res | From | To | |
Change Attribute Type | 1 | ||
Change Attribute Type FILES : ConcurrentMap<String,Res> to FILES : ConcurrentMap<Set<String>,Res> in class org.rapidoid.io.Res | From | To | |
Rename Parameter | 1 | ||
Rename Parameter name : String to shortName : String in method private Res(shortName String, filenames Set<String>) in class org.rapidoid.io.Res | From | To |