a9197269143f9d976a1565bbf4e383fac6e1326f
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 1
Refactorings reported:
| Refactoring Name | Occurences | ||
|---|---|---|---|
| Rename Variable | 4 | ||
| Rename Variable buf : byte[] to largeBuf : byte[] in method private testOneFileUsingDFSStripedInputStream(src String, fileLength int) : void in class org.apache.hadoop.hdfs.TestWriteReadStripedFile | From | To | |
| Rename Variable buf : byte[] to smallBuf : byte[] in method private testOneFileUsingDFSStripedInputStream(src String, fileLength int) : void in class org.apache.hadoop.hdfs.TestWriteReadStripedFile | From | To | |
| Rename Variable testPath : Path to srcPath : Path in method private testOneFileUsingDFSStripedInputStream(src String, fileLength int) : void in class org.apache.hadoop.hdfs.TestWriteReadStripedFile | From | To | |
| Rename Variable bytes : byte[] to expected : byte[] in method private testOneFileUsingDFSStripedInputStream(src String, fileLength int) : void in class org.apache.hadoop.hdfs.TestWriteReadStripedFile | From | To | |
| Parameterize Variable | 2 | ||
| Parameterize Variable testPath : Path to srcPath : Path in method package verifyLength(fs FileSystem, srcPath Path, fileLength int) : void in class org.apache.hadoop.hdfs.TestWriteReadStripedFile | From | To | |
| Parameterize Variable bytes : byte[] to fileLength : int in method package verifyLength(fs FileSystem, srcPath Path, fileLength int) : void in class org.apache.hadoop.hdfs.TestWriteReadStripedFile | From | To | |
| Extract Variable | 3 | ||
| Extract Variable in : FSDataInputStream in method package verifyStatefulRead(fs FileSystem, srcPath Path, fileLength int, expected byte[], buf byte[]) : void from class org.apache.hadoop.hdfs.TestWriteReadStripedFile | From | To | |
| Extract Variable in : FSDataInputStream in method package verifySeek(fs FileSystem, srcPath Path, fileLength int) : void from class org.apache.hadoop.hdfs.TestWriteReadStripedFile | From | To | |
| Extract Variable in : FSDataInputStream in method package verifyStatefulRead(fs FileSystem, srcPath Path, fileLength int, expected byte[], buf ByteBuffer) : void from class org.apache.hadoop.hdfs.TestWriteReadStripedFile | From | To | |
| Change Variable Type | 1 | ||
| Change Variable Type bytes : byte[] to fileLength : int in method package verifyLength(fs FileSystem, srcPath Path, fileLength int) : void in class org.apache.hadoop.hdfs.TestWriteReadStripedFile | From | To | |
| Inline Variable | 1 | ||
| Inline Variable fileLength : long in method private testOneFileUsingDFSStripedInputStream(src String, writeBytes int) : void from class org.apache.hadoop.hdfs.TestWriteReadStripedFile | From | To | |
| Extract Method | 4 | ||
| Extract Method package verifySeek(fs FileSystem, srcPath Path, fileLength int) : void extracted from private testOneFileUsingDFSStripedInputStream(src String, writeBytes int) : void in class org.apache.hadoop.hdfs.TestWriteReadStripedFile | From | To | |
| Extract Method package verifyLength(fs FileSystem, srcPath Path, fileLength int) : void extracted from private testOneFileUsingDFSStripedInputStream(src String, writeBytes int) : void in class org.apache.hadoop.hdfs.TestWriteReadStripedFile | From | To | |
| Extract Method package verifyStatefulRead(fs FileSystem, srcPath Path, fileLength int, expected byte[], buf byte[]) : void extracted from private testOneFileUsingDFSStripedInputStream(src String, writeBytes int) : void in class org.apache.hadoop.hdfs.TestWriteReadStripedFile | From | To | |
| Extract Method package verifyStatefulRead(fs FileSystem, srcPath Path, fileLength int, expected byte[], buf ByteBuffer) : void extracted from private testOneFileUsingDFSStripedInputStream(src String, writeBytes int) : void in class org.apache.hadoop.hdfs.TestWriteReadStripedFile | From | To | |
| Change Attribute Type | 1 | ||
| Change Attribute Type fs : DistributedFileSystem to fs : FileSystem in class org.apache.hadoop.hdfs.TestWriteReadStripedFile | From | To | |
| Rename Parameter | 3 | ||
| Rename Parameter writeBytes : int to fileLength : int in method package verifySeek(fs FileSystem, srcPath Path, fileLength int) : void in class org.apache.hadoop.hdfs.TestWriteReadStripedFile | From | To | |
| Rename Parameter writeBytes : int to fileLength : int in method private testOneFileUsingDFSStripedInputStream(src String, fileLength int) : void in class org.apache.hadoop.hdfs.TestWriteReadStripedFile | From | To | |
| Rename Parameter writeBytes : int to fileLength : int in method package verifyStatefulRead(fs FileSystem, srcPath Path, fileLength int, expected byte[], buf ByteBuffer) : void in class org.apache.hadoop.hdfs.TestWriteReadStripedFile | From | To |