Future.java: Fix typos in Javadoc (#9391)

Motivation:

Docs should have no typos

Modifications:

Fix a few typos

Result:

More correct docs.
This commit is contained in:
Per Lundberg 2019-07-24 08:23:29 +03:00 committed by Norman Maurer
parent d6c05e9b31
commit eef72b022a

View File

@ -164,14 +164,14 @@ public interface Future<V> extends java.util.concurrent.Future<V> {
* Return the result without blocking. If the future is not done yet this will return {@code null}.
*
* As it is possible that a {@code null} value is used to mark the future as successful you also need to check
* if the future is really done with {@link #isDone()} and not relay on the returned {@code null} value.
* if the future is really done with {@link #isDone()} and not rely on the returned {@code null} value.
*/
V getNow();
/**
* {@inheritDoc}
*
* If the cancellation was successful it will fail the future with an {@link CancellationException}.
* If the cancellation was successful it will fail the future with a {@link CancellationException}.
*/
@Override
boolean cancel(boolean mayInterruptIfRunning);