d47d0f83c65b4652d50c9875043c171e656cf210
Files Diff
- Added: 1
- Removed: 0
- Renamed: 0
- Modified: 49
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 3 | ||
Rename Method public setFallback(fallbackConfigRepository ConfigRepository) : void renamed to public setUpstreamRepository(upstreamConfigRepository ConfigRepository) : void in class com.ctrip.framework.apollo.internals.ConfigRepository | From | To | |
Rename Method public setFallback(fallbackConfigRepository ConfigRepository) : void renamed to public setUpstreamRepository(upstreamConfigRepository ConfigRepository) : void in class com.ctrip.framework.apollo.internals.LocalFileConfigRepository | From | To | |
Rename Method private trySyncFromFallback() : void renamed to private trySyncFromUpstream() : void in class com.ctrip.framework.apollo.internals.LocalFileConfigRepository | From | To | |
Move Method | 1 | ||
Move Method private checkLocalConfigCacheDir(baseDir File) : void from class com.ctrip.framework.apollo.spi.DefaultConfigFactory to private checkLocalConfigCacheDir(baseDir File) : void from class com.ctrip.framework.apollo.internals.LocalFileConfigRepository | From | To | |
Rename Variable | 1 | ||
Rename Variable sleepTime : long to sleepTimeInSecond : long in method private doLongPollingRefresh(appId String, cluster String, dataCenter String) : void in class com.ctrip.framework.apollo.internals.RemoteConfigRepository | From | To | |
Move Attribute | 1 | ||
Move Attribute private CONFIG_DIR : String from class com.ctrip.framework.apollo.spi.DefaultConfigFactory to private CONFIG_DIR : String from class com.ctrip.framework.apollo.internals.LocalFileConfigRepository | From | To | |
Replace Variable With Attribute | 1 | ||
Replace Variable With Attribute longPollingService : ExecutorService to m_executorService : ScheduledExecutorService in method private doLongPollingRefresh(appId String, cluster String, dataCenter String) : void in class com.ctrip.framework.apollo.internals.RemoteConfigRepository | From | To | |
Rename Attribute | 3 | ||
Rename Attribute m_fallback : ConfigRepository to m_upstream : ConfigRepository in class com.ctrip.framework.apollo.internals.LocalFileConfigRepository | From | To | |
Rename Attribute NAMESPACE_DEFAULT : String to NAMESPACE_APPLICATION : String in class com.ctrip.framework.apollo.core.ConfigConsts | From | To | |
Rename Attribute m_longPollSchedulePolicy : SchedulePolicy to m_longPollFailSchedulePolicyInSecond : SchedulePolicy in class com.ctrip.framework.apollo.internals.RemoteConfigRepository | From | To | |
Change Variable Type | 1 | ||
Change Variable Type longPollingService : ExecutorService to m_executorService : ScheduledExecutorService in method private doLongPollingRefresh(appId String, cluster String, dataCenter String) : void in class com.ctrip.framework.apollo.internals.RemoteConfigRepository | From | To | |
Extract Method | 1 | ||
Extract Method package initialize(baseDir File) : void extracted from public LocalFileConfigRepository(baseDir File, namespace String) in class com.ctrip.framework.apollo.internals.LocalFileConfigRepository | From | To | |
Rename Parameter | 2 | ||
Rename Parameter fallbackConfigRepository : ConfigRepository to upstreamConfigRepository : ConfigRepository in method public setUpstreamRepository(upstreamConfigRepository ConfigRepository) : void in class com.ctrip.framework.apollo.internals.LocalFileConfigRepository | From | To | |
Rename Parameter fallbackConfigRepository : ConfigRepository to upstreamConfigRepository : ConfigRepository in method public setUpstreamRepository(upstreamConfigRepository ConfigRepository) : void in class com.ctrip.framework.apollo.internals.ConfigRepository | From | To |