dd635acff4bd73e3e1858952e5773dfbe711f349
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 4
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Variable | 2 | ||
Rename Variable publishTime : Object to tmp : Object in method private getMessageFromHttpResponse(response Response) : List<Message> in class org.apache.pulsar.client.admin.internal.PersistentTopicsImpl | From | To | |
Rename Variable futures : CompletableFuture<List<Message>> to future : CompletableFuture<List<Message>> in method public peekMessagesAsync(destination String, subName String, numMessages int) : CompletableFuture<List<Message>> in class org.apache.pulsar.client.admin.internal.PersistentTopicsImpl | From | To | |
Change Return Type | 2 | ||
Change Return Type Message to List<Message> in method private getMessageFromHttpResponse(response Response) : List<Message> in class org.apache.pulsar.client.admin.internal.PersistentTopicsImpl | From | To | |
Change Return Type CompletableFuture<Message> to CompletableFuture<List<Message>> in method private peekNthMessage(destination String, subName String, messagePosition int) : CompletableFuture<List<Message>> in class org.apache.pulsar.client.admin.internal.PersistentTopicsImpl | From | To | |
Change Variable Type | 1 | ||
Change Variable Type future : CompletableFuture<Message> to future : CompletableFuture<List<Message>> in method private peekNthMessage(destination String, subName String, messagePosition int) : CompletableFuture<List<Message>> in class org.apache.pulsar.client.admin.internal.PersistentTopicsImpl | From | To | |
Inline Variable | 2 | ||
Inline Variable futureMessages : List<CompletableFuture<Message>> in method public peekMessagesAsync(destination String, subName String, numMessages int) : CompletableFuture<List<Message>> from class org.apache.pulsar.client.admin.internal.PersistentTopicsImpl | From | To | |
Inline Variable msg : Message in method public completed(response Response) : void from class org.apache.pulsar.client.admin.internal.PersistentTopicsImpl.peekNthMessage.asyncGetRequest | From | To | |
Extract Method | 1 | ||
Extract Method private peekMessagesAsync(destination String, subName String, numMessages int, messages List<Message>, future CompletableFuture<List<Message>>, nthMessage int) : void extracted from public peekMessagesAsync(destination String, subName String, numMessages int) : CompletableFuture<List<Message>> in class org.apache.pulsar.client.admin.internal.PersistentTopicsImpl | From | To |