871d0d39faa2c4c992d61ed20497dcf6c3faa376
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 4
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Change Parameter Type | 2 | ||
Change Parameter Type log : Log to log : Logger in method public init(interval int, maxSkipLevels int, log Logger) : void in class org.apache.hadoop.hdfs.server.namenode.snapshot.DirectoryDiffListFactory | From | To | |
Change Parameter Type indexFunction : IntFunction<Integer> to indexFunction : ToIntBiFunction<DiffListBySkipList,Integer> in method package testRemove(name String, n int, indexFunction ToIntBiFunction<DiffListBySkipList,Integer>) : void in class org.apache.hadoop.hdfs.server.namenode.snapshot.TestDiffListBySkipList | From | To | |
Move Method | 1 | ||
Move Method package randomLevel(skipInterval int, maxLevel int) : int from class org.apache.hadoop.hdfs.server.namenode.snapshot.DiffListBySkipList to public randomLevel() : int from class org.apache.hadoop.hdfs.server.namenode.snapshot.DirectoryDiffListFactory | From | To | |
Rename Variable | 1 | ||
Rename Variable current : SkipListNode to newNode : SkipListNode in method public addLast(diff DirectoryDiff) : boolean in class org.apache.hadoop.hdfs.server.namenode.snapshot.DiffListBySkipList | From | To | |
Move Attribute | 1 | ||
Move Attribute private skipInterval : int from class org.apache.hadoop.hdfs.server.namenode.snapshot.DiffListBySkipList to private skipInterval : int from class org.apache.hadoop.hdfs.server.namenode.snapshot.DirectoryDiffListFactory | From | To | |
Rename Attribute | 1 | ||
Rename Attribute skipDiffList : List<SkipDiff> to skips : SkipDiff[] in class org.apache.hadoop.hdfs.server.namenode.snapshot.DiffListBySkipList.SkipListNode | From | To | |
Extract Variable | 2 | ||
Extract Variable next : SkipListNode in method public remove(index int) : DirectoryDiff from class org.apache.hadoop.hdfs.server.namenode.snapshot.DiffListBySkipList | From | To | |
Extract Variable previous : SkipListNode in method public remove(index int) : DirectoryDiff from class org.apache.hadoop.hdfs.server.namenode.snapshot.DiffListBySkipList | From | To | |
Change Attribute Type | 2 | ||
Change Attribute Type skipDiffList : List<SkipDiff> to skips : SkipDiff[] in class org.apache.hadoop.hdfs.server.namenode.snapshot.DiffListBySkipList.SkipListNode | From | To | |
Change Attribute Type LOG : Log to LOG : Logger in class org.apache.hadoop.hdfs.server.namenode.snapshot.SnapshotManager | From | To | |
Extract And Move Method | 1 | ||
Extract And Move Method package skip2String(skipTo SkipListNode, diff ChildrenDiff) : String extracted from public toString() : String in class org.apache.hadoop.hdfs.server.namenode.snapshot.DiffListBySkipList.SkipDiff & moved to class org.apache.hadoop.hdfs.server.namenode.snapshot.DiffListBySkipList | From | To |