f13181de9b34506304d88fe53c7d7054b4263bfa
Files Diff
- Added: 22
- Removed: 20
- Renamed: 0
- Modified: 51
Link to commit
Third party dependencies:
| Dependency Action | |
|---|---|
| Added | |
| com.alibaba:fastjson:1.2.23 | |
| Removed | |
| com.google.code.gson:gson:2.8.0 | |
| org.mapstruct:mapstruct-jdk8:1.1.0.Final |
Refactorings reported:
| Refactoring Name | Occurences | ||
|---|---|---|---|
| Extract Subclass | 1 | ||
| Extract Subclass com.mpush.api.srd.CommonServiceNode from class com.mpush.zk.node.ZKServerNode | From | To | |
| Change Parameter Type | 3 | ||
| Change Parameter Type listener : ZKNodeCacheWatcher to listener : TreeCacheListener in method public registerListener(listener TreeCacheListener) : void in class com.mpush.zk.ZKClient | From | To | |
| Change Parameter Type node : ZKServerNode to node : ServiceNode in method private removeClient(node ServiceNode) : void in class com.mpush.client.gateway.connection.GatewayTCPConnectionFactory | From | To | |
| Change Parameter Type node : ZKServerNode to node : ServiceNode in method public ServerBoot(server Server, node ServiceNode) in class com.mpush.bootstrap.job.ServerBoot | From | To | |
| Move Method | 1 | ||
| Move Method public equals(o Object) : boolean from class com.mpush.zk.node.ZKServerNode to public equals(o Object) : boolean from class com.mpush.api.spi.net.DnsMapping | From | To | |
| Push Down Attribute | 1 | ||
| Push Down Attribute private port : int from class com.mpush.zk.node.ZKServerNode to private port : int from class com.mpush.api.srd.CommonServiceNode | From | To | |
| Extract Class | 1 | ||
| Extract Class com.mpush.common.ServerNodes from class com.mpush.zk.node.ZKServerNode | From | To | |
| Rename Class | 1 | ||
| Rename Class com.mpush.bootstrap.job.ZKBoot renamed to com.mpush.bootstrap.job.ServiceRegistryBoot | From | To | |
| Move And Rename Class | 2 | ||
| Move And Rename Class com.mpush.cache.redis.RedisKey moved and renamed to com.mpush.common.CacheKeys | From | To | |
| Move And Rename Class com.mpush.zk.node.ZKServerNode moved and renamed to com.mpush.api.srd.ServiceNode | From | To | |
| Move Class | 1 | ||
| Move Class com.mpush.common.net.KickRemoteMsg moved to com.mpush.common.router.KickRemoteMsg | From | To | |
| Change Variable Type | 3 | ||
| Change Variable Type server : ZKServerNode to node : ServiceNode in method private testConnClient(count int, userPrefix String, printDelay int, sync boolean) : void in class com.mpush.test.client.ConnClientTestMain | From | To | |
| Change Variable Type serverList : List<ZKServerNode> to serverList : List<ServiceNode> in method private testConnClient(count int, userPrefix String, printDelay int, sync boolean) : void in class com.mpush.test.client.ConnClientTestMain | From | To | |
| Change Variable Type list : List<? extends DnsMapping> to list : List<DnsMapping> in method public lookup(origin String) : DnsMapping in class com.mpush.common.net.HttpProxyDnsMappingManager | From | To | |
| Rename Method | 1 | ||
| Rename Method public getIp() : String renamed to public getAttr(name String) : String in class com.mpush.api.srd.ServiceNode | From | To | |
| Pull Up Method | 1 | ||
| Pull Up Method public hashCode() : int from class com.mpush.zk.node.ZKDnsNode to public hashCode() : int from class com.mpush.api.spi.net.DnsMapping | From | To | |
| Push Down Method | 2 | ||
| Push Down Method public getPort() : int from class com.mpush.zk.node.ZKServerNode to public getPort() : int from class com.mpush.api.srd.CommonServiceNode | From | To | |
| Push Down Method public toString() : String from class com.mpush.zk.node.ZKServerNode to public toString() : String from class com.mpush.api.srd.CommonServiceNode | From | To | |
| Rename Variable | 1 | ||
| Rename Variable server : ZKServerNode to node : ServiceNode in method private testConnClient(count int, userPrefix String, printDelay int, sync boolean) : void in class com.mpush.test.client.ConnClientTestMain | From | To | |
| Change Return Type | 1 | ||
| Change Return Type List<ZKServerNode> to List<ServiceNode> in method public getServers() : List<ServiceNode> in class com.mpush.test.client.ConnClientBoot | From | To | |
| Rename Attribute | 3 | ||
| Rename Attribute REDIS : Logger to CACHE : Logger in class com.mpush.tools.log.Logs | From | To | |
| Rename Attribute ZK : Logger to RSD : Logger in class com.mpush.tools.log.Logs | From | To | |
| Rename Attribute cache : ZKDnsNodeCache to mappings : Map<String,List<DnsMapping>> in class com.mpush.common.net.HttpProxyDnsMappingManager | From | To | |
| Change Attribute Type | 2 | ||
| Change Attribute Type node : ZKServerNode to node : ServiceNode in class com.mpush.bootstrap.job.ServerBoot | From | To | |
| Change Attribute Type cache : ZKDnsNodeCache to mappings : Map<String,List<DnsMapping>> in class com.mpush.common.net.HttpProxyDnsMappingManager | From | To |