1e62f0950889b098fbdc87b41eb8af2019a12340
Files Diff
- Added: 10
- Removed: 3
- Renamed: 0
- Modified: 19
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 2 | ||
Rename Method public testRetryOrComplete() : void renamed to public testCompleteOrRetry() : void in class net.jodah.recurrent.AsyncInvocationTest | From | To | |
Rename Method public getWaitTime() : long renamed to public getWaitNanos() : long in class net.jodah.recurrent.Invocation | From | To | |
Move And Rename Method | 1 | ||
Move And Rename Method private performAsyncCallback(callable Callable<T>, executor ExecutorService) : void from class net.jodah.recurrent.RecurrentFuture to private call(callable Callable<?>, executor ExecutorService, scheduler Scheduler) : void from class net.jodah.recurrent.AsyncListeners | From | To | |
Change Parameter Type | 5 | ||
Change Parameter Type runnable : ContextualRunnable to runnable : Runnable in method package of(runnable Runnable) : AsyncCallable<T> in class net.jodah.recurrent.AsyncCallable | From | To | |
Change Parameter Type callable : Callable<T> to callable : Callable<?> in method private call(callable Callable<?>, executor ExecutorService, scheduler Scheduler) : void in class net.jodah.recurrent.AsyncListeners | From | To | |
Change Parameter Type runnable : Runnable to runnable : ContextualRunnable in method package of(runnable ContextualRunnable) : AsyncCallable<T> in class net.jodah.recurrent.AsyncCallable | From | To | |
Change Parameter Type listener : FailureListener to listener : ResultListener<T,Throwable> in method package of(listener ResultListener<T,Throwable>, result T, failure Throwable) : Callable<T> in class net.jodah.recurrent.Callables | From | To | |
Change Parameter Type listener : CompletionListener<T> to listener : ContextualResultListener<T,Throwable> in method package of(listener ContextualResultListener<T,Throwable>, result T, failure Throwable, stats InvocationStats) : Callable<T> in class net.jodah.recurrent.Callables | From | To | |
Rename Variable | 2 | ||
Rename Variable complete : boolean to completed : boolean in method private completeInternal(result Object, failure Throwable, checkArgs boolean) : boolean in class net.jodah.recurrent.AsyncInvocation | From | To | |
Rename Variable stats : Invocation to invocation : Invocation in method private call(callable Callable<T>, retryPolicy RetryPolicy, listeners Listeners<T>) : T in class net.jodah.recurrent.Recurrent | From | To | |
Change Return Type | 3 | ||
Change Return Type AsyncCallable<?> to AsyncCallable<T> in method package of(runnable ContextualRunnable) : AsyncCallable<T> in class net.jodah.recurrent.AsyncCallable | From | To | |
Change Return Type AsyncCallable<?> to AsyncCallable<T> in method package of(runnable Runnable) : AsyncCallable<T> in class net.jodah.recurrent.AsyncCallable | From | To | |
Change Return Type Callable<?> to Callable<Object> in method package of(runnable Runnable) : Callable<Object> in class net.jodah.recurrent.Callables | From | To | |
Move Attribute | 1 | ||
Move Attribute private successListener : SuccessListener<T> from class net.jodah.recurrent.RecurrentFuture to private successListener : SuccessListener<T> from class net.jodah.recurrent.Listeners | From | To | |
Extract Class | 1 | ||
Extract Class net.jodah.recurrent.Listeners from class net.jodah.recurrent.RecurrentFuture | From | To | |
Rename Class | 1 | ||
Rename Class net.jodah.recurrent.util.concurrent.AbstractScheduledFuture renamed to net.jodah.recurrent.util.concurrent.DefaultScheduledFuture | From | To | |
Extract Interface | 1 | ||
Extract Interface net.jodah.recurrent.InvocationStats from classes [net.jodah.recurrent.Invocation] | From | To | |
Change Attribute Type | 3 | ||
Change Attribute Type asyncFailureListener : FailureListener to asyncFailureListener : AsyncResultListener<T> in class net.jodah.recurrent.RecurrentFuture | From | To | |
Change Attribute Type failureTypes : Class<? extends Throwable>[] to failureTypes : List<Class<? extends Throwable>> in class net.jodah.recurrent.RetryPolicy | From | To | |
Change Attribute Type asyncSuccessListener : SuccessListener<T> to asyncSuccessListener : AsyncResultListener<T> in class net.jodah.recurrent.RecurrentFuture | From | To | |
Extract Method | 2 | ||
Extract Method public getElapsedNanos() : long extracted from private adjustForMaxDuration() : void in class net.jodah.recurrent.Invocation | From | To | |
Extract Method package canRetryForInternal(result Object, failure Throwable) : boolean extracted from public canRetryFor(result Object, failure Throwable) : boolean in class net.jodah.recurrent.Invocation | From | To |