202a8a9941b2b738812c1e07e121bd64975539c1
Files Diff
- Added: 3
- Removed: 1
- Renamed: 0
- Modified: 17
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 1 | ||
Rename Method private newBuffer() : void renamed to public messageFailed() : void in class org.neo4j.bolt.v1.transport.ChunkedOutput | From | To | |
Change Parameter Type | 1 | ||
Change Parameter Type onMessageComplete : BoltResponseMessageBoundaryHook to output : PackOutput in method public BoltResponseMessageWriter(neo4jPack Neo4jPack, output PackOutput, logService LogService, messageLogger BoltMessageLogger) in class org.neo4j.bolt.v1.messaging.BoltResponseMessageWriter | From | To | |
Rename Variable | 1 | ||
Rename Variable chunkSize : int to chunkBodySize : int in method private closeChunkIfOpen() : void in class org.neo4j.bolt.v1.transport.ChunkedOutput | From | To | |
Rename Attribute | 1 | ||
Rename Attribute currentChunkHeaderOffset : int to currentChunkStartIndex : int in class org.neo4j.bolt.v1.transport.ChunkedOutput | From | To | |
Extract Variable | 1 | ||
Extract Variable bytes : byte[] in method public shouldChunkDataWhoseSizeIsGreaterThanOutputBufferCapacity() : void from class org.neo4j.bolt.v1.transport.socket.ChunkedOutputTest | From | To | |
Change Attribute Type | 1 | ||
Change Attribute Type closed : AtomicBoolean to closed : boolean in class org.neo4j.bolt.v1.transport.ChunkedOutput | From | To | |
Extract Method | 4 | ||
Extract Method private currentChunkBodySize() : int extracted from private closeChunkIfOpen() : void in class org.neo4j.bolt.v1.transport.ChunkedOutput | From | To | |
Extract Method private packCompleteMessageOrFail(message BoltResponseMessage, action ThrowingAction<IOException>) : void extracted from public onRecord(item QueryResult.Record) : void in class org.neo4j.bolt.v1.messaging.BoltResponseMessageWriter | From | To | |
Extract Method private startNewChunk() : void extracted from private ensure(size int) : void in class org.neo4j.bolt.v1.transport.ChunkedOutput | From | To | |
Extract Method private assertOpen() : void extracted from private ensure(size int) : void in class org.neo4j.bolt.v1.transport.ChunkedOutput | From | To | |
Rename Parameter | 2 | ||
Rename Parameter size : int to numberOfBytes : int in method private ensure(numberOfBytes int) : void in class org.neo4j.bolt.v1.transport.ChunkedOutput | From | To | |
Rename Parameter onMessageComplete : BoltResponseMessageBoundaryHook to output : PackOutput in method public BoltResponseMessageWriter(neo4jPack Neo4jPack, output PackOutput, logService LogService, messageLogger BoltMessageLogger) in class org.neo4j.bolt.v1.messaging.BoltResponseMessageWriter | From | To |