61dd036a35c194c1e8d2555974e9fa2a4b7846d2
Files Diff
- Added: 32
- Removed: 36
- Renamed: 0
- Modified: 20
Refactorings reported:
| Refactoring Name | Occurences | ||
|---|---|---|---|
| Rename Method | 2 | ||
| Rename Method public getGroup() : String renamed to public getNamespace() : String in class com.ctrip.apollo.core.dto.ApolloConfig | From | To | |
| Rename Method public getVersion() : String renamed to public getNamespace() : String in class com.ctrip.apollo.client.model.ApolloRegistry | From | To | |
| Change Parameter Type | 1 | ||
| Change Parameter Type configurations : Map<String,Object> to configurations : Map<String,String> in method public setConfigurations(configurations Map<String,String>) : void in class com.ctrip.apollo.core.dto.ApolloConfig | From | To | |
| Move Method | 2 | ||
| Move Method private assembleSomeApolloRegistry(someAppId String, someVersion String) : ApolloRegistry from class com.ctrip.apollo.client.loader.ConfigLoaderManagerTest to private assembleSomeApolloRegistry(someAppId String, someClusterName String, someNamespace String) : ApolloRegistry from class com.ctrip.apollo.client.loader.impl.RemoteConfigLoaderTest | From | To | |
| Move Method public getProperty(key String, defaultValue String) : String from class com.ctrip.apollo.client.ApolloEnvironment to public getProperty(key String) : String from class com.ctrip.apollo.core.dto.ApolloConfig | From | To | |
| Rename Variable | 1 | ||
| Rename Variable version : String to namespace : String in method package getRemoteConfig(restTemplate RestTemplate, uri String, apolloRegistry ApolloRegistry, previousConfig ApolloConfig) : ApolloConfig in class com.ctrip.apollo.client.loader.impl.RemoteConfigLoader | From | To | |
| Change Return Type | 1 | ||
| Change Return Type Map<String,Object> to Map<String,String> in method package transformConfigurationToMap(configurations String) : Map<String,String> in class com.ctrip.apollo.biz.service.ConfigService | From | To | |
| Rename Attribute | 3 | ||
| Rename Attribute env : ApolloEnvironment to config : Config in class ApolloConfigDemo | From | To | |
| Rename Attribute group : String to namespace : String in class com.ctrip.apollo.core.dto.ApolloConfig | From | To | |
| Rename Attribute DEFAULT_CLUSTER_NAME : String to CLUSTER_NAME_DEFAULT : String in class com.ctrip.apollo.core.ConfigConsts | From | To | |
| Change Variable Type | 2 | ||
| Change Variable Type result : Map<String,Object> to result : Map<String,String> in method public testTransformConfigurationToMapSuccessful() : void in class com.ctrip.apollo.biz.service.ConfigServiceTest | From | To | |
| Change Variable Type result : Map<String,Object> to result : Map<String,String> in method public testTransformConfigurationToMapFailed() : void in class com.ctrip.apollo.biz.service.ConfigServiceTest | From | To | |
| Change Attribute Type | 3 | ||
| Change Attribute Type configurations : Map<String,Object> to configurations : Map<String,String> in class com.ctrip.apollo.core.dto.ApolloConfig | From | To | |
| Change Attribute Type configurationTypeReference : TypeReference<Map<String,Object>> to configurationTypeReference : TypeReference<Map<String,String>> in class com.ctrip.apollo.biz.service.ConfigService | From | To | |
| Change Attribute Type env : ApolloEnvironment to config : Config in class ApolloConfigDemo | From | To | |
| Rename Parameter | 2 | ||
| Rename Parameter group : String to namespace : String in method public ApolloConfig(appId String, cluster String, namespace String, releaseId long) in class com.ctrip.apollo.core.dto.ApolloConfig | From | To | |
| Rename Parameter groupName : String to namespace : String in method public queryConfig(appId String, clusterName String, namespace String, clientSideReleaseId long, response HttpServletResponse) : ApolloConfig in class com.ctrip.apollo.configservice.controller.ConfigController | From | To |