673280df24f0228bf01777035ceeab8807da8c40
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 11
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 1 | ||
Rename Method private get(b Block) : DBlock renamed to private putIfAbsent(blk Block, dblk DBlock) : DBlock in class org.apache.hadoop.hdfs.server.balancer.Dispatcher.GlobalBlockMap | From | To | |
Change Parameter Type | 1 | ||
Change Parameter Type block : Block to block : BlockInfo in method private addBlock(block BlockInfo, results List<BlockWithLocations>) : long in class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager | From | To | |
Rename Variable | 3 | ||
Rename Variable i : int to j : int in method public testConvertBlocksWithLocations() : void in class org.apache.hadoop.hdfs.protocolPB.TestPBHelper | From | To | |
Rename Variable newBlocks : BlocksWithLocations to newBlksLocs : BlocksWithLocations in method private getBlockList() : long in class org.apache.hadoop.hdfs.server.balancer.Dispatcher.Source | From | To | |
Rename Variable blk : BlockWithLocations to blkLocs : BlockWithLocations in method private getBlockList() : long in class org.apache.hadoop.hdfs.server.balancer.Dispatcher.Source | From | To | |
Parameterize Variable | 1 | ||
Parameterize Variable block : DBlock to dblk : DBlock in method private putIfAbsent(blk Block, dblk DBlock) : DBlock in class org.apache.hadoop.hdfs.server.balancer.Dispatcher.GlobalBlockMap | From | To | |
Rename Attribute | 1 | ||
Rename Attribute block : DBlock to reportedBlock : DBlock in class org.apache.hadoop.hdfs.server.balancer.Dispatcher.PendingMove | From | To | |
Extract Variable | 2 | ||
Extract Variable builder : BlockWithLocationsProto.Builder in method public convert(blk BlockWithLocations) : BlockWithLocationsProto from class org.apache.hadoop.hdfs.protocolPB.PBHelper | From | To | |
Extract Variable blkWithLocs : BlockWithLocations in method private addBlock(block BlockInfo, results List<BlockWithLocations>) : long from class org.apache.hadoop.hdfs.server.blockmanagement.BlockManager | From | To | |
Rename Parameter | 1 | ||
Rename Parameter b : Block to blk : Block in method private putIfAbsent(blk Block, dblk DBlock) : DBlock in class org.apache.hadoop.hdfs.server.balancer.Dispatcher.GlobalBlockMap | From | To |