28f04a8f7e46bb11a1737c587433bd3ca1499307
Files Diff
- Added: 5
- Removed: 6
- Renamed: 0
- Modified: 5
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Change Parameter Type | 1 | ||
Change Parameter Type of : org.rapidoid.lambda.Mapper<K,V> to of : Mapper<K,V> in method public of(of Mapper<K,V>) : CacheDSL<K,V> in class org.rapidoid.cache.Cache | From | To | |
Rename Variable | 1 | ||
Rename Variable cachedValue : CachedCalc<V> to atom : ConcurrentCacheAtom<V> in method public get(key K) : V in class org.rapidoid.cache.impl.ConcurrentCached | From | To | |
Change Return Type | 2 | ||
Change Return Type CachedImpl<K,V> to ConcurrentCached<K,V> in method public create(params CacheDSL<K,V>) : ConcurrentCached<K,V> in class org.rapidoid.cache.impl.CacheFactory | From | To | |
Change Return Type void to T in method public addRotating(obj T) : T in class org.rapidoid.util.SimpleList | From | To | |
Rename Class | 1 | ||
Rename Class org.rapidoid.cache.CachedCalc renamed to org.rapidoid.cache.CacheAtom | From | To | |
Move And Rename Class | 2 | ||
Move And Rename Class org.rapidoid.cache.CachedImpl moved and renamed to org.rapidoid.cache.impl.ConcurrentCached | From | To | |
Move And Rename Class org.rapidoid.cache.ConcurrentCached moved and renamed to org.rapidoid.cache.impl.ConcurrentCacheAtom | From | To | |
Move Class | 2 | ||
Move Class org.rapidoid.cache.CacheFactory moved to org.rapidoid.cache.impl.CacheFactory | From | To | |
Move Class org.rapidoid.cache.CacheDSL moved to org.rapidoid.cache.impl.CacheDSL | From | To | |
Replace Variable With Attribute | 1 | ||
Replace Variable With Attribute obj : T to array : T[] in method public addRotating(obj T) : T in class org.rapidoid.util.SimpleList | From | To | |
Change Variable Type | 6 | ||
Change Variable Type cachedValue : CachedCalc<V> to atom : ConcurrentCacheAtom<V> in method public get(key K) : V in class org.rapidoid.cache.impl.ConcurrentCached | From | To | |
Change Variable Type obj : T to array : T[] in method public addRotating(obj T) : T in class org.rapidoid.util.SimpleList | From | To | |
Change Variable Type entry : MapEntry<K,CachedCalc<V>> to entry : MapEntry<K,ConcurrentCacheAtom<V>> in method public getIfExists(key K) : V in class org.rapidoid.cache.impl.ConcurrentCached | From | To | |
Change Variable Type entry : MapEntry<K,CachedCalc<V>> to entry : MapEntry<K,ConcurrentCacheAtom<V>> in method public get(key K) : V in class org.rapidoid.cache.impl.ConcurrentCached | From | To | |
Change Variable Type bucket : SimpleList<MapEntry<K,CachedCalc<V>>> to bucket : SimpleList<MapEntry<K,ConcurrentCacheAtom<V>>> in method public get(key K) : V in class org.rapidoid.cache.impl.ConcurrentCached | From | To | |
Change Variable Type cached : ConcurrentCached<String> to cached : ConcurrentCacheAtom<String> in method public testCachedValue() : void in class org.rapidoid.cache.SimpleCacheTest | From | To | |
Extract Method | 2 | ||
Extract Method private retrieveCachedValue(loadIfExpired boolean, updateStats boolean) : V extracted from public get() : V in class org.rapidoid.cache.impl.ConcurrentCacheAtom | From | To | |
Extract Method private updateStats(missed boolean, hasError boolean) : void extracted from public get() : V in class org.rapidoid.cache.impl.ConcurrentCacheAtom | From | To |