dfb18f7ccf3f693a786cf50a802aad7dc8293923
Files Diff
- Added: 4
- Removed: 1
- Renamed: 0
- Modified: 5
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 2 | ||
Rename Method public getAppList() : Collection<ServerApp> renamed to public getList() : Collection<ConnectionServerApplication> in class com.shinemo.mpush.cs.manage.impl.ConnectionServerManage | From | To | |
Rename Method private printAppList() : void renamed to private printList() : void in class com.shinemo.mpush.cs.manage.impl.ConnectionServerManage | From | To | |
Pull Up Method | 4 | ||
Pull Up Method private _initData() : void from class com.shinemo.mpush.cs.zk.listener.impl.ConnectionServerPathListener to private _initData() : void from class com.shinemo.mpush.cs.zk.listener.AbstractDataChangeListener | From | To | |
Pull Up Method public dataChanged(client CuratorFramework, event TreeCacheEvent, path String) : void from class com.shinemo.mpush.cs.zk.listener.impl.ConnectionServerPathListener to public dataChanged(client CuratorFramework, event TreeCacheEvent, path String) : void from class com.shinemo.mpush.cs.zk.listener.AbstractDataChangeListener | From | To | |
Pull Up Method public initData() : void from class com.shinemo.mpush.cs.zk.listener.impl.ConnectionServerPathListener to public initData() : void from class com.shinemo.mpush.cs.zk.listener.AbstractDataChangeListener | From | To | |
Pull Up Method private dataRemove(data ChildData) : void from class com.shinemo.mpush.cs.zk.listener.impl.ConnectionServerPathListener to private dataRemove(data ChildData) : void from class com.shinemo.mpush.cs.zk.listener.AbstractDataChangeListener | From | To | |
Move And Rename Method | 1 | ||
Move And Rename Method private getServerApp(fullPath String) : ServerApp from class com.shinemo.mpush.cs.zk.listener.impl.ConnectionServerPathListener to private getServerApplication(fullPath String, clazz Class<T>) : T from class com.shinemo.mpush.cs.zk.listener.AbstractDataChangeListener | From | To | |
Change Parameter Type | 1 | ||
Change Parameter Type app : ServerApp to application : ConnectionServerApplication in method public addOrUpdate(fullPath String, application ConnectionServerApplication) : void in class com.shinemo.mpush.cs.manage.impl.ConnectionServerManage | From | To | |
Move Method | 1 | ||
Move Method private dataAddOrUpdate(data ChildData) : void from class com.shinemo.mpush.cs.zk.listener.impl.ConnectionServerPathListener to private dataAddOrUpdate(data ChildData, clazz Class<T>) : void from class com.shinemo.mpush.cs.zk.listener.AbstractDataChangeListener | From | To | |
Pull Up Attribute | 2 | ||
Pull Up Attribute private zkRegister : ZkRegister from class com.shinemo.mpush.cs.zk.listener.impl.ConnectionServerPathListener to protected zkRegister : ZkRegister from class com.shinemo.mpush.cs.zk.listener.AbstractDataChangeListener | From | To | |
Pull Up Attribute private log : Logger from class com.shinemo.mpush.cs.zk.listener.impl.ConnectionServerPathListener to private log : Logger from class com.shinemo.mpush.cs.zk.listener.AbstractDataChangeListener | From | To | |
Change Return Type | 2 | ||
Change Return Type ServerApp to T in method private getServerApplication(fullPath String, clazz Class<T>) : T in class com.shinemo.mpush.cs.zk.listener.AbstractDataChangeListener | From | To | |
Change Return Type Collection<ServerApp> to Collection<ConnectionServerApplication> in method public getList() : Collection<ConnectionServerApplication> in class com.shinemo.mpush.cs.manage.impl.ConnectionServerManage | From | To | |
Extract Superclass | 1 | ||
Extract Superclass com.shinemo.mpush.cs.zk.listener.AbstractDataChangeListener from classes [com.shinemo.mpush.cs.zk.listener.impl.ConnectionServerPathListener] | From | To | |
Change Variable Type | 1 | ||
Change Variable Type app : ServerApp to app : ConnectionServerApplication in method private printList() : void in class com.shinemo.mpush.cs.manage.impl.ConnectionServerManage | From | To | |
Change Attribute Type | 1 | ||
Change Attribute Type holder : Map<String,ServerApp> to holder : Map<String,ConnectionServerApplication> in class com.shinemo.mpush.cs.manage.impl.ConnectionServerManage | From | To | |
Rename Parameter | 1 | ||
Rename Parameter app : ServerApp to application : ConnectionServerApplication in method public addOrUpdate(fullPath String, application ConnectionServerApplication) : void in class com.shinemo.mpush.cs.manage.impl.ConnectionServerManage | From | To |