diff --git a/core/src/main/java/dev/failsafe/CircuitBreaker.java b/core/src/main/java/dev/failsafe/CircuitBreaker.java index 6d01eda6..e2f687d0 100644 --- a/core/src/main/java/dev/failsafe/CircuitBreaker.java +++ b/core/src/main/java/dev/failsafe/CircuitBreaker.java @@ -229,7 +229,7 @@ default void acquirePermit() { void recordFailure(); /** - * Records an {@code exception} as a success or failure based on the exception configuration. + * Records an {@code exception} as a success or failure based on the failure configuration. */ void recordException(Throwable exception); diff --git a/core/src/main/java/dev/failsafe/ExecutionImpl.java b/core/src/main/java/dev/failsafe/ExecutionImpl.java index 7dbb4e90..6003aacd 100644 --- a/core/src/main/java/dev/failsafe/ExecutionImpl.java +++ b/core/src/main/java/dev/failsafe/ExecutionImpl.java @@ -169,7 +169,7 @@ synchronized ExecutionResult postExecute(ExecutionResult result) { return result; } - /** Called indorectly by users. */ + /** Called indirectly by users. */ @Override public boolean cancel() { boolean cancelled = isCancelled(); diff --git a/core/src/main/java/dev/failsafe/internal/util/DelegatingScheduler.java b/core/src/main/java/dev/failsafe/internal/util/DelegatingScheduler.java index 15f5558c..df0705fb 100644 --- a/core/src/main/java/dev/failsafe/internal/util/DelegatingScheduler.java +++ b/core/src/main/java/dev/failsafe/internal/util/DelegatingScheduler.java @@ -21,12 +21,12 @@ /** * A {@link Scheduler} implementation that schedules delays on an internal, common ScheduledExecutorService and executes - * tasks on either a provided ExecutorService, {@link ForkJoinPool#commonPool()}, or an internal {@link ForkJoinPool} - * instance. If no {@link ExecutorService} is supplied, the {@link ForkJoinPool#commonPool()} will be used, unless the - * common pool's parallelism is 1, then an internal {@link ForkJoinPool} with parallelism of 2 will be created and - * used. + * tasks on either a provided {@link ExecutorService}, {@link ForkJoinPool#commonPool()}, or an internal + * {@link ForkJoinPool} instance. If no {@link ExecutorService} is supplied, the {@link ForkJoinPool#commonPool()} will + * be used, unless the common pool's parallelism is 1, then an internal {@link ForkJoinPool} with parallelism of 2 will + * be created and used. *

- * Supports cancellation of {@link ForkJoinPool} tasks. + * Supports cancellation and interruption of {@link ForkJoinPool} tasks. *

* * @author Jonathan Halterman