58c86cc37c901e8e8a2d733b7bafd28ba0aeaf7a
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 8
Refactorings reported:
| Refactoring Name | Occurences | ||
|---|---|---|---|
| Push Down Method | 1 | ||
| Push Down Method public tearDown() : void from class org.neo4j.io.pagecache.PageSwapperTest to public tearDown() : void from class org.neo4j.io.pagecache.impl.SingleFilePageSwapperTest | From | To | |
| Rename Variable | 1 | ||
| Rename Variable pageCacheFactory : ConfiguringPageCacheFactory to factory : ConfiguringPageCacheFactory in method public shouldUseConfiguredPageSizeAndFitAsManyPagesAsItCan() : void in class org.neo4j.kernel.impl.pagecache.ConfiguringPageCacheFactoryTest | From | To | |
| Push Down Attribute | 1 | ||
| Push Down Attribute protected fs : EphemeralFileSystemAbstraction from class org.neo4j.io.pagecache.PageSwapperTest to private fs : EphemeralFileSystemAbstraction from class org.neo4j.io.pagecache.impl.SingleFilePageSwapperTest | From | To | |
| Parameterize Variable | 1 | ||
| Parameterize Variable pageSize : long to cachePageSize : int in method public calculateMaxPages(config Config, cachePageSize int) : int in class org.neo4j.kernel.impl.pagecache.ConfiguringPageCacheFactory | From | To | |
| Replace Variable With Attribute | 3 | ||
| Replace Variable With Attribute x : long to X : long in method public mustReopenChannelWhenWriteFailsWithAsynchronousCloseException() : void in class org.neo4j.io.pagecache.PageSwapperTest | From | To | |
| Replace Variable With Attribute z : int to Z : int in method public mustReopenChannelWhenWriteFailsWithAsynchronousCloseException() : void in class org.neo4j.io.pagecache.PageSwapperTest | From | To | |
| Replace Variable With Attribute y : long to Y : long in method public mustReopenChannelWhenWriteFailsWithAsynchronousCloseException() : void in class org.neo4j.io.pagecache.PageSwapperTest | From | To | |
| Change Variable Type | 1 | ||
| Change Variable Type pageSize : long to cachePageSize : int in method public calculateMaxPages(config Config, cachePageSize int) : int in class org.neo4j.kernel.impl.pagecache.ConfiguringPageCacheFactory | From | To | |
| Extract Method | 10 | ||
| Extract Method protected cachePageSize() : int extracted from public mustReopenChannelWhenWriteFailsWithAsynchronousCloseException() : void in class org.neo4j.io.pagecache.PageSwapperTest | From | To | |
| Extract Method protected cachePageSize() : int extracted from public mustReopenChannelWhenReadFailsWithAsynchronousCloseException() : void in class org.neo4j.io.pagecache.PageSwapperTest | From | To | |
| Extract Method protected cachePageSize() : int extracted from public swappingOutMustNotSwallowInterrupts() : void in class org.neo4j.io.pagecache.PageSwapperTest | From | To | |
| Extract Method protected cachePageSize() : int extracted from public readMustNotReopenExplicitlyClosedChannel() : void in class org.neo4j.io.pagecache.PageSwapperTest | From | To | |
| Extract Method protected createPage() : ByteBufferPage extracted from public writeMustNotReopenExplicitlyClosedChannel() : void in class org.neo4j.io.pagecache.PageSwapperTest | From | To | |
| Extract Method protected createPage() : ByteBufferPage extracted from public swappingOutMustNotSwallowInterrupts() : void in class org.neo4j.io.pagecache.PageSwapperTest | From | To | |
| Extract Method protected createPage() : ByteBufferPage extracted from public mustReopenChannelWhenReadFailsWithAsynchronousCloseException() : void in class org.neo4j.io.pagecache.PageSwapperTest | From | To | |
| Extract Method protected createPage() : ByteBufferPage extracted from public mustReopenChannelWhenWriteFailsWithAsynchronousCloseException() : void in class org.neo4j.io.pagecache.PageSwapperTest | From | To | |
| Extract Method protected createPage() : ByteBufferPage extracted from public readMustNotReopenExplicitlyClosedChannel() : void in class org.neo4j.io.pagecache.PageSwapperTest | From | To | |
| Extract Method protected cachePageSize() : int extracted from public writeMustNotReopenExplicitlyClosedChannel() : void in class org.neo4j.io.pagecache.PageSwapperTest | From | To | |
| Extract And Move Method | 8 | ||
| Extract And Move Method protected ensureFileExists(file File) : void extracted from public mustReopenChannelWhenWriteFailsWithAsynchronousCloseException() : void in class org.neo4j.io.pagecache.PageSwapperTest & moved to class org.neo4j.io.pagecache.impl.SingleFilePageSwapperTest | From | To | |
| Extract And Move Method protected ensureFileExists(file File) : void extracted from public forceMustNotReopenExplicitlyClosedChannel() : void in class org.neo4j.io.pagecache.PageSwapperTest & moved to class org.neo4j.io.pagecache.impl.SingleFilePageSwapperTest | From | To | |
| Extract And Move Method protected ensureFileExists(file File) : void extracted from public mustReopenChannelWhenReadFailsWithAsynchronousCloseException() : void in class org.neo4j.io.pagecache.PageSwapperTest & moved to class org.neo4j.io.pagecache.impl.SingleFilePageSwapperTest | From | To | |
| Extract And Move Method protected ensureFileExists(file File) : void extracted from public mustReopenChannelWhenForceFailsWithAsynchronousCloseException() : void in class org.neo4j.io.pagecache.PageSwapperTest & moved to class org.neo4j.io.pagecache.impl.SingleFilePageSwapperTest | From | To | |
| Extract And Move Method protected ensureFileExists(file File) : void extracted from public readMustNotReopenExplicitlyClosedChannel() : void in class org.neo4j.io.pagecache.PageSwapperTest & moved to class org.neo4j.io.pagecache.impl.SingleFilePageSwapperTest | From | To | |
| Extract And Move Method protected ensureFileExists(file File) : void extracted from public forcingMustNotSwallowInterrupts() : void in class org.neo4j.io.pagecache.PageSwapperTest & moved to class org.neo4j.io.pagecache.impl.SingleFilePageSwapperTest | From | To | |
| Extract And Move Method protected ensureFileExists(file File) : void extracted from public swappingOutMustNotSwallowInterrupts() : void in class org.neo4j.io.pagecache.PageSwapperTest & moved to class org.neo4j.io.pagecache.impl.SingleFilePageSwapperTest | From | To | |
| Extract And Move Method protected ensureFileExists(file File) : void extracted from public writeMustNotReopenExplicitlyClosedChannel() : void in class org.neo4j.io.pagecache.PageSwapperTest & moved to class org.neo4j.io.pagecache.impl.SingleFilePageSwapperTest | From | To |