8e3eb6098fe05a3da582c98fca67f62a90bac16f
Files Diff
- Added: 2
- Removed: 2
- Renamed: 0
- Modified: 6
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 1 | ||
Rename Method private run(operation Operation...) : void renamed to public onComplete(operation CompletionOperation...) : Result in class org.apache.james.task.Task.Result | From | To | |
Change Parameter Type | 1 | ||
Change Parameter Type operation : Operation... to operation : CompletionOperation... in method public onComplete(operation CompletionOperation...) : Result in class org.apache.james.task.Task.Result | From | To | |
Inline Method | 3 | ||
Inline Method public await(countDownLatch CountDownLatch) : void inlined to public taskCodeAfterCancelIsNotRun(waitingForResultLatch CountDownLatch) : void in class org.apache.james.task.TaskManagerContract | From | To | |
Inline Method public sleep(durationInMs int) : void inlined to public submittedTaskShouldExecuteSequentially() : void in class org.apache.james.task.TaskManagerContract | From | To | |
Change Return Type | 1 | ||
Change Return Type void to Result in method public onComplete(operation CompletionOperation...) : Result in class org.apache.james.task.Task.Result | From | To | |
Move Attribute | 2 | ||
Move Attribute private cancelledTasks : Set<TaskId> from class org.apache.james.task.WorkQueue to private cancelledTasks : Set<TaskId> from class org.apache.james.task.SerialTaskManagerWorker | From | To | |
Move Attribute private taskExecutor : ExecutorService from class org.apache.james.task.WorkQueue to private taskExecutor : ExecutorService from class org.apache.james.task.SerialTaskManagerWorker | From | To | |
Extract Class | 1 | ||
Extract Class org.apache.james.task.SerialTaskManagerWorker from class org.apache.james.task.WorkQueue | From | To | |
Rename Class | 1 | ||
Rename Class org.apache.james.task.MemoryTaskManagerWorkerTest renamed to org.apache.james.task.SerialTaskManagerWorkerTest | From | To | |
Rename Attribute | 1 | ||
Rename Attribute awaitAtMostOneSecond : ConditionFactory to awaitAtMostFiveSeconds : ConditionFactory in class org.apache.james.task.TaskManagerContract | From | To | |
Change Attribute Type | 1 | ||
Change Attribute Type worker : MemoryTaskManagerWorker to worker : SerialTaskManagerWorker in class org.apache.james.task.SerialTaskManagerWorkerTest | From | To | |
Extract Method | 1 | ||
Extract Method private onComplete(operation Stream<CompletionOperation>) : Result extracted from public onComplete(operation Operation...) : Result in class org.apache.james.task.Task.Result | From | To | |
Rename Parameter | 2 | ||
Rename Parameter operation : Operation... to operations : Operation... in method public onFailure(operations Operation...) : Result in class org.apache.james.task.Task.Result | From | To | |
Rename Parameter operation : Operation... to operations : Operation... in method public onComplete(operations Operation...) : Result in class org.apache.james.task.Task.Result | From | To |