edf92adfecb5fd6444cdf173c91c4c9cf60d0324
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 3
Refactorings reported:
| Refactoring Name | Occurences | ||
|---|---|---|---|
| Rename Variable | 4 | ||
| Rename Variable requiredSize : int to ourLimit : int in method public write(source ByteBuffer) : int in class org.cryptomator.filesystem.inmem.InMemoryWritableFile | From | To | |
| Rename Variable destination : ByteBuffer to newBuf : ByteBuffer in method private ensureCapacity(buf ByteBuffer, limit int) : ByteBuffer in class org.cryptomator.filesystem.inmem.InMemoryWritableFile | From | To | |
| Rename Variable oldFileSize : int to prevLimit : int in method public write(source ByteBuffer) : int in class org.cryptomator.filesystem.inmem.InMemoryWritableFile | From | To | |
| Rename Variable newFileSize : int to newLimit : int in method public write(source ByteBuffer) : int in class org.cryptomator.filesystem.inmem.InMemoryWritableFile | From | To | |
| Extract Variable | 1 | ||
| Extract Variable toBeCopied : int in method public write(source ByteBuffer) : int from class org.cryptomator.filesystem.inmem.InMemoryWritableFile | From | To | |
| Extract Method | 2 | ||
| Extract Method private ensureCapacity(buf ByteBuffer, limit int) : ByteBuffer extracted from public write(source ByteBuffer) : int in class org.cryptomator.filesystem.inmem.InMemoryWritableFile | From | To | |
| Extract Method package createNewEmptyByteBuffer() : ByteBuffer extracted from public delete() : void in class org.cryptomator.filesystem.inmem.InMemoryFile | From | To | |
| Change Attribute Type | 5 | ||
| Change Attribute Type open : boolean to open : AtomicBoolean in class org.cryptomator.filesystem.inmem.InMemoryReadableFile | From | To | |
| Change Attribute Type position : int to position : AtomicInteger in class org.cryptomator.filesystem.inmem.InMemoryWritableFile | From | To | |
| Change Attribute Type position : int to position : AtomicInteger in class org.cryptomator.filesystem.inmem.InMemoryReadableFile | From | To | |
| Change Attribute Type content : ByteBuffer to content : AtomicReference<ByteBuffer> in class org.cryptomator.filesystem.inmem.InMemoryFile | From | To | |
| Change Attribute Type open : boolean to open : AtomicBoolean in class org.cryptomator.filesystem.inmem.InMemoryWritableFile | From | To |