ba0da2785d251745969f88a50d33ce61876d91aa
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 13
Refactorings reported:
| Refactoring Name | Occurences | ||
|---|---|---|---|
| Rename Method | 3 | ||
| Rename Method public removeChild(type ListType, child INode) : boolean renamed to public removeDeletedChild(child INode) : boolean in class org.apache.hadoop.hdfs.server.namenode.snapshot.DirectoryWithSnapshotFeature.DirectoryDiffList | From | To | |
| Rename Method public replaceChild(type ListType, oldChild INode, newChild INode) : boolean renamed to public replaceCreatedChild(oldChild INode, newChild INode) : boolean in class org.apache.hadoop.hdfs.server.namenode.snapshot.DirectoryWithSnapshotFeature.DirectoryDiffList | From | To | |
| Rename Method private replace(type ListType, oldChild INode, newChild INode) : boolean renamed to private replaceCreated(oldChild INode, newChild INode) : boolean in class org.apache.hadoop.hdfs.server.namenode.snapshot.DirectoryWithSnapshotFeature.ChildrenDiff | From | To | |
| Rename Variable | 1 | ||
| Rename Variable cList : List<INode> to childrenDiff : ChildrenDiff in method public testRenameDirAndDeleteSnapshot_7() : void in class org.apache.hadoop.hdfs.server.namenode.snapshot.TestRenameWithSnapshots | From | To | |
| Parameterize Variable | 3 | ||
| Parameterize Variable childrenDiff : ChildrenDiff to diff : ChildrenDiff in method package assertSizes(createdSize int, deletedSize int, diff ChildrenDiff) : void in class org.apache.hadoop.hdfs.server.namenode.snapshot.TestRenameWithSnapshots | From | To | |
| Extract Variable | 1 | ||
| Extract Variable diff : DirectoryDiff in method public testClearQuota() : void from class org.apache.hadoop.hdfs.server.namenode.snapshot.TestSetQuotaWithSnapshot | From | To | |
| Change Variable Type | 1 | ||
| Change Variable Type cList : List<INode> to childrenDiff : ChildrenDiff in method public testRenameDirAndDeleteSnapshot_7() : void in class org.apache.hadoop.hdfs.server.namenode.snapshot.TestRenameWithSnapshots | From | To | |
| Extract Method | 8 | ||
| Extract Method package assertSizes(createdSize int, deletedSize int, diff ChildrenDiff) : void extracted from public testCleanDstReference() : void in class org.apache.hadoop.hdfs.server.namenode.snapshot.TestRenameWithSnapshots | From | To | |
| Extract Method package assertSizes(createdSize int, deletedSize int, diff ChildrenDiff) : void extracted from public testRenameDirAndDeleteSnapshot_3() : void in class org.apache.hadoop.hdfs.server.namenode.snapshot.TestRenameWithSnapshots | From | To | |
| Extract Method package assertSizes(createdSize int, deletedSize int, diff ChildrenDiff) : void extracted from public testRenameUndo_1() : void in class org.apache.hadoop.hdfs.server.namenode.snapshot.TestRenameWithSnapshots | From | To | |
| Extract Method package assertSizes(createdSize int, deletedSize int, diff ChildrenDiff) : void extracted from public testRenameUndo_3() : void in class org.apache.hadoop.hdfs.server.namenode.snapshot.TestRenameWithSnapshots | From | To | |
| Extract Method package assertSizes(createdSize int, deletedSize int, diff ChildrenDiff) : void extracted from public testRenameDirAndDeleteSnapshot_4() : void in class org.apache.hadoop.hdfs.server.namenode.snapshot.TestRenameWithSnapshots | From | To | |
| Extract Method package assertSizes(createdSize int, deletedSize int, diff ChildrenDiff) : void extracted from public testRenameUndo_2() : void in class org.apache.hadoop.hdfs.server.namenode.snapshot.TestRenameWithSnapshots | From | To | |
| Change Attribute Type | 1 | ||
| Change Attribute Type LOG : Log to LOG : Logger in class org.apache.hadoop.hdfs.server.namenode.snapshot.SnapshotTestHelper | From | To | |
| Extract And Move Method | 2 | ||
| Extract And Move Method public clearCreated() : void extracted from private destroyCreatedList(reclaimContext INode.ReclaimContext, currentINode INodeDirectory) : void in class org.apache.hadoop.hdfs.server.namenode.snapshot.DirectoryWithSnapshotFeature.ChildrenDiff & moved to class org.apache.hadoop.hdfs.util.Diff | From | To | |
| Extract And Move Method public clearDeleted() : void extracted from private destroyDeletedList(reclaimContext INode.ReclaimContext) : void in class org.apache.hadoop.hdfs.server.namenode.snapshot.DirectoryWithSnapshotFeature.ChildrenDiff & moved to class org.apache.hadoop.hdfs.util.Diff | From | To |