0bc6d37f3c1e7c2a8682dffa95461a884bd6ba17
Files Diff
- Added: 0
- Removed: 3
- Renamed: 0
- Modified: 10
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 4 | ||
Rename Method private getSnapshotPath(inputDir Path, snapshotName String) : Path renamed to private getSourceSnapshotPath(sourceDir Path, snapshotName String) : Path in class org.apache.hadoop.tools.DistCpSync | From | To | |
Rename Method public prepareDiffListForCopyListing() : ArrayList<DiffInfo> renamed to public prepareDiffList() : ArrayList<DiffInfo> in class org.apache.hadoop.tools.DistCpSync | From | To | |
Rename Method private getRenameAndDeleteDiffsForSync(targetDir Path) : DiffInfo[] renamed to private getRenameAndDeleteDiffs(targetDir Path) : DiffInfo[] in class org.apache.hadoop.tools.DistCpSync | From | To | |
Rename Method private translateRenamedPath(sourcePath Path, renameItem DiffInfo) : Path renamed to private getTargetPath(sourcePath Path, renameItem DiffInfo) : Path in class org.apache.hadoop.tools.DistCpSync | From | To | |
Move And Inline Method | 2 | ||
Move And Inline Method package getSource() : Path moved from class org.apache.hadoop.tools.DiffInfo to class org.apache.hadoop.tools.DistCpSync & inlined to private getTargetPath(sourcePath Path, renameItem DiffInfo) : Path | From | To | |
Move And Inline Method package setTarget(target Path) : void moved from class org.apache.hadoop.tools.DiffInfo to class org.apache.hadoop.tools.DistCpSync & inlined to public prepareDiffList() : ArrayList<DiffInfo> | From | To | |
Rename Variable | 1 | ||
Rename Variable tgtFs : FileSystem to tfs : FileSystem in method private preSyncCheck() : boolean in class org.apache.hadoop.tools.DistCpSync | From | To | |
Inline Method | 6 | ||
Inline Method private getRenameAndDeleteDiffsRdiff(targetDir Path) : DiffInfo[] inlined to private getRenameAndDeleteDiffs(targetDir Path) : DiffInfo[] in class org.apache.hadoop.tools.DistCpSync | From | To | |
Inline Method private prepareFileListing(job Job) : void inlined to public createAndSubmitJob() : Job in class org.apache.hadoop.tools.DistCp | From | To | |
Inline Method private testSnapshotDiffOption(isDiff boolean) : void inlined to public testDiffOption() : void in class org.apache.hadoop.tools.TestOptionsParser | From | To | |
Inline Method private isRdiff() : boolean inlined to private getAllDiffs() : boolean in class org.apache.hadoop.tools.DistCpSync | From | To | |
Inline Method private checkSnapshotsArgs(snapshots String[]) : void inlined to public parse(args String[]) : DistCpOptions in class org.apache.hadoop.tools.OptionsParser | From | To | |
Inline Variable | 1 | ||
Inline Variable optionLabel : String in method private testSnapshotDiffOption(isDiff boolean) : void from class org.apache.hadoop.tools.TestOptionsParser | From | To | |
Rename Parameter | 1 | ||
Rename Parameter inputDir : Path to sourceDir : Path in method private getSourceSnapshotPath(sourceDir Path, snapshotName String) : Path in class org.apache.hadoop.tools.DistCpSync | From | To |