933b532bba4a4a212e21cd2a2ca1b3806d085547
Files Diff
- Added: 7
- Removed: 3
- Renamed: 0
- Modified: 8
Third party dependencies:
Dependency Action |
---|
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 1 | ||
Rename Method private initialize() : void renamed to private initRemoteConfig() : void in class com.ctrip.apollo.internals.RemoteConfigRepository | From | To | |
Move And Rename Method | 1 | ||
Move And Rename Method public testGetPropertyWithLocalFile() : void from class com.ctrip.apollo.internals.DefaultConfigTest to public testLoadConfigWithLocalFile() : void from class com.ctrip.apollo.internals.LocalFileConfigRepositoryTest | From | To | |
Move Method | 6 | ||
Move Method private assembleLocalCacheFileName() : String from class com.ctrip.apollo.internals.DefaultConfigTest to private assembleLocalCacheFileName() : String from class com.ctrip.apollo.internals.LocalFileConfigRepositoryTest | From | To | |
Move Method public loadConfig() : Properties from class com.ctrip.apollo.internals.DefaultConfig to public loadConfig() : Properties from class com.ctrip.apollo.internals.LocalFileConfigRepository | From | To | |
Move Method package initLocalConfig() : void from class com.ctrip.apollo.internals.DefaultConfig to package initLocalConfig() : void from class com.ctrip.apollo.internals.LocalFileConfigRepository | From | To | |
Move Method private loadFromLocalCacheFile(baseDir File, namespace String) : Properties from class com.ctrip.apollo.internals.DefaultConfig to private loadFromLocalCacheFile(baseDir File, namespace String) : Properties from class com.ctrip.apollo.internals.LocalFileConfigRepository | From | To | |
Move Method package persistLocalCacheFile(baseDir File, namespace String) : void from class com.ctrip.apollo.internals.DefaultConfig to package persistLocalCacheFile(baseDir File, namespace String) : void from class com.ctrip.apollo.internals.LocalFileConfigRepository | From | To | |
Move Method package assembleLocalCacheFile(baseDir File, namespace String) : File from class com.ctrip.apollo.internals.DefaultConfig to package assembleLocalCacheFile(baseDir File, namespace String) : File from class com.ctrip.apollo.internals.LocalFileConfigRepository | From | To | |
Rename Variable | 2 | ||
Rename Variable someRemoteConfig : RemoteConfig to someLocalConfigRepo : LocalFileConfigRepository in method public testCreate() : void in class com.ctrip.apollo.spi.DefaultConfigFactoryTest | From | To | |
Rename Variable remoteConfig : RemoteConfig to remoteConfigRepository : RemoteConfigRepository in method public testLoadConfig() : void in class com.ctrip.apollo.internals.RemoteConfigRepositoryTest | From | To | |
Move Attribute | 5 | ||
Move Attribute private m_configUtil : ConfigUtil from class com.ctrip.apollo.internals.DefaultConfig to private m_configUtil : ConfigUtil from class com.ctrip.apollo.internals.LocalFileConfigRepository | From | To | |
Move Attribute private someConfigUtil : ConfigUtil from class com.ctrip.apollo.internals.DefaultConfigTest to private someConfigUtil : ConfigUtil from class com.ctrip.apollo.internals.LocalFileConfigRepositoryTest | From | To | |
Move Attribute private m_baseDir : File from class com.ctrip.apollo.internals.DefaultConfig to private m_baseDir : File from class com.ctrip.apollo.internals.LocalFileConfigRepository | From | To | |
Move Attribute private someBaseDir : File from class com.ctrip.apollo.internals.DefaultConfigTest to private someBaseDir : File from class com.ctrip.apollo.internals.LocalFileConfigRepositoryTest | From | To | |
Move Attribute private m_fileProperties : Properties from class com.ctrip.apollo.internals.DefaultConfig to private m_fileProperties : Properties from class com.ctrip.apollo.internals.LocalFileConfigRepository | From | To | |
Extract Class | 2 | ||
Extract Class com.ctrip.apollo.internals.LocalFileConfigRepository from class com.ctrip.apollo.internals.DefaultConfig | From | To | |
Extract Class com.ctrip.apollo.internals.LocalFileConfigRepositoryTest from class com.ctrip.apollo.internals.DefaultConfigTest | From | To | |
Rename Class | 3 | ||
Rename Class com.ctrip.apollo.internals.RemoteConfigTest renamed to com.ctrip.apollo.internals.RemoteConfigRepositoryTest | From | To | |
Rename Class com.ctrip.apollo.internals.RemoteConfig renamed to com.ctrip.apollo.internals.RemoteConfigRepository | From | To | |
Rename Class com.ctrip.apollo.internals.ConfigLoader renamed to com.ctrip.apollo.internals.ConfigRepository | From | To | |
Rename Attribute | 1 | ||
Rename Attribute m_fileProperties : Properties to m_configProperties : Properties in class com.ctrip.apollo.internals.DefaultConfig | From | To | |
Change Variable Type | 2 | ||
Change Variable Type someRemoteConfig : RemoteConfig to someLocalConfigRepo : LocalFileConfigRepository in method public testCreate() : void in class com.ctrip.apollo.spi.DefaultConfigFactoryTest | From | To | |
Change Variable Type remoteConfig : RemoteConfig to remoteConfigRepository : RemoteConfigRepository in method public testLoadConfig() : void in class com.ctrip.apollo.internals.RemoteConfigRepositoryTest | From | To | |
Rename Parameter | 1 | ||
Rename Parameter locator : ConfigServiceLocator to serviceLocator : ConfigServiceLocator in method public RemoteConfigRepository(restTemplate RestTemplate, serviceLocator ConfigServiceLocator, configUtil ConfigUtil, namespace String) in class com.ctrip.apollo.internals.RemoteConfigRepository | From | To |