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 513e9f2893
commit aa032b8aea

View File

@ -155,14 +155,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);