8338398: Trivially fix grammar and typos

Reviewed-by: aivanov
This commit is contained in:
Pavel Rappo 2024-08-16 14:06:10 +00:00
parent 5022109b2a
commit 07352c6744
3 changed files with 6 additions and 6 deletions

View File

@ -2805,7 +2805,7 @@ public class CompletableFuture<T> implements Future<T>, CompletionStage<T> {
/** /**
* Exceptionally completes this CompletableFuture with * Exceptionally completes this CompletableFuture with
* a {@link TimeoutException} if not otherwise completed * a {@link TimeoutException} if not otherwise completed
* before the given timeout. * before the given timeout elapsed.
* *
* @param timeout how long to wait before completing exceptionally * @param timeout how long to wait before completing exceptionally
* with a TimeoutException, in units of {@code unit} * with a TimeoutException, in units of {@code unit}
@ -2825,7 +2825,7 @@ public class CompletableFuture<T> implements Future<T>, CompletionStage<T> {
/** /**
* Completes this CompletableFuture with the given value if not * Completes this CompletableFuture with the given value if not
* otherwise completed before the given timeout. * otherwise completed before the given timeout elapsed.
* *
* @param value the value to use upon timeout * @param value the value to use upon timeout
* @param timeout how long to wait before completing normally * @param timeout how long to wait before completing normally

View File

@ -670,7 +670,7 @@ public class ForkJoinPool extends AbstractExecutorService {
* period given by field keepAlive (default 60sec), which applies * period given by field keepAlive (default 60sec), which applies
* to the first timeout of a quiescent pool. Subsequent cases use * to the first timeout of a quiescent pool. Subsequent cases use
* minimal delays such that, if still quiescent, all will be * minimal delays such that, if still quiescent, all will be
* released soon therafter. This is checked by setting the * released soon thereafter. This is checked by setting the
* "source" field of signallee to an invalid value, that will * "source" field of signallee to an invalid value, that will
* remain invalid only if it did not process any tasks. * remain invalid only if it did not process any tasks.
* *
@ -855,7 +855,7 @@ public class ForkJoinPool extends AbstractExecutorService {
* non-workers (which comply with Future.get() specs). Internal * non-workers (which comply with Future.get() specs). Internal
* usages of ForkJoinTasks ignore interrupt status when executing * usages of ForkJoinTasks ignore interrupt status when executing
* or awaiting completion. Otherwise, reporting task results or * or awaiting completion. Otherwise, reporting task results or
* exceptions is preferred to throwing InterruptedExecptions, * exceptions is preferred to throwing InterruptedExceptions,
* which are in turn preferred to timeouts. Similarly, completion * which are in turn preferred to timeouts. Similarly, completion
* status is preferred to reporting cancellation. Cancellation is * status is preferred to reporting cancellation. Cancellation is
* reported as an unchecked exception by join(), and by worker * reported as an unchecked exception by join(), and by worker

View File

@ -1072,7 +1072,7 @@ public abstract class ForkJoinTask<V> implements Future<V>, Serializable {
/** /**
* Tries to join this task, returning true if it completed * Tries to join this task, returning true if it completed
* (possibly exceptionally) before the given timeout and * (possibly exceptionally) before the given timeout elapsed and
* the current thread has not been interrupted. * the current thread has not been interrupted.
* *
* @param timeout the maximum time to wait * @param timeout the maximum time to wait
@ -1097,7 +1097,7 @@ public abstract class ForkJoinTask<V> implements Future<V>, Serializable {
/** /**
* Tries to join this task, returning true if it completed * Tries to join this task, returning true if it completed
* (possibly exceptionally) before the given timeout. * (possibly exceptionally) before the given timeout elapsed.
* *
* @param timeout the maximum time to wait * @param timeout the maximum time to wait
* @param unit the time unit of the timeout argument * @param unit the time unit of the timeout argument