diff --git a/common/src/main/java/io/netty/util/concurrent/CompleteFuture.java b/common/src/main/java/io/netty/util/concurrent/CompleteFuture.java index 84376233dd..ed5755f572 100644 --- a/common/src/main/java/io/netty/util/concurrent/CompleteFuture.java +++ b/common/src/main/java/io/netty/util/concurrent/CompleteFuture.java @@ -140,6 +140,11 @@ public abstract class CompleteFuture extends AbstractFuture { return false; } + /** + * {@inheritDoc} + * + * @param mayInterruptIfRunning this value has no effect in this implementation. + */ @Override public boolean cancel(boolean mayInterruptIfRunning) { return false; diff --git a/common/src/main/java/io/netty/util/concurrent/DefaultPromise.java b/common/src/main/java/io/netty/util/concurrent/DefaultPromise.java index 6b175b2e5a..dc595cfa99 100644 --- a/common/src/main/java/io/netty/util/concurrent/DefaultPromise.java +++ b/common/src/main/java/io/netty/util/concurrent/DefaultPromise.java @@ -308,6 +308,11 @@ public class DefaultPromise extends AbstractFuture implements Promise { return (V) result; } + /** + * {@inheritDoc} + * + * @param mayInterruptIfRunning this value has no effect in this implementation. + */ @Override public boolean cancel(boolean mayInterruptIfRunning) { if (RESULT_UPDATER.compareAndSet(this, null, CANCELLATION_CAUSE_HOLDER)) { diff --git a/common/src/main/java/io/netty/util/concurrent/ScheduledFutureTask.java b/common/src/main/java/io/netty/util/concurrent/ScheduledFutureTask.java index 05cba6b83a..6043d6ffec 100644 --- a/common/src/main/java/io/netty/util/concurrent/ScheduledFutureTask.java +++ b/common/src/main/java/io/netty/util/concurrent/ScheduledFutureTask.java @@ -151,6 +151,11 @@ final class ScheduledFutureTask extends PromiseTask implements ScheduledFu } } + /** + * {@inheritDoc} + * + * @param mayInterruptIfRunning this value has no effect in this implementation. + */ @Override public boolean cancel(boolean mayInterruptIfRunning) { boolean canceled = super.cancel(mayInterruptIfRunning); diff --git a/transport/src/main/java/io/netty/channel/VoidChannelPromise.java b/transport/src/main/java/io/netty/channel/VoidChannelPromise.java index bce765dbd1..c684843ebf 100644 --- a/transport/src/main/java/io/netty/channel/VoidChannelPromise.java +++ b/transport/src/main/java/io/netty/channel/VoidChannelPromise.java @@ -179,6 +179,11 @@ public final class VoidChannelPromise extends AbstractFuture implements Ch return false; } + /** + * {@inheritDoc} + * + * @param mayInterruptIfRunning this value has no effect in this implementation. + */ @Override public boolean cancel(boolean mayInterruptIfRunning) { return false; diff --git a/transport/src/main/java/io/netty/channel/group/VoidChannelGroupFuture.java b/transport/src/main/java/io/netty/channel/group/VoidChannelGroupFuture.java index e8fa84266b..740ac33702 100644 --- a/transport/src/main/java/io/netty/channel/group/VoidChannelGroupFuture.java +++ b/transport/src/main/java/io/netty/channel/group/VoidChannelGroupFuture.java @@ -138,6 +138,11 @@ final class VoidChannelGroupFuture implements ChannelGroupFuture { return null; } + /** + * {@inheritDoc} + * + * @param mayInterruptIfRunning this value has no effect in this implementation. + */ @Override public boolean cancel(boolean mayInterruptIfRunning) { return false;