From bb800d606761fc31f926f0d4eea877d3a27e479a Mon Sep 17 00:00:00 2001 From: Roman Fedorov Date: Sat, 22 May 2021 10:33:45 +0300 Subject: [PATCH] Delete obsolete javadoc warning about pendingTasks() method expensiveness (#11287) Co-authored-by: Roman Fedorov --- .../java/io/netty/util/concurrent/GlobalEventExecutor.java | 3 --- .../io/netty/util/concurrent/SingleThreadEventExecutor.java | 3 --- 2 files changed, 6 deletions(-) diff --git a/common/src/main/java/io/netty/util/concurrent/GlobalEventExecutor.java b/common/src/main/java/io/netty/util/concurrent/GlobalEventExecutor.java index b3a5f39347..a23897baa7 100644 --- a/common/src/main/java/io/netty/util/concurrent/GlobalEventExecutor.java +++ b/common/src/main/java/io/netty/util/concurrent/GlobalEventExecutor.java @@ -125,9 +125,6 @@ public final class GlobalEventExecutor extends AbstractScheduledEventExecutor im /** * Return the number of tasks that are pending for processing. - * - * Be aware that this operation may be expensive as it depends on the internal implementation of the - * SingleThreadEventExecutor. So use it was care! */ public int pendingTasks() { return taskQueue.size(); diff --git a/common/src/main/java/io/netty/util/concurrent/SingleThreadEventExecutor.java b/common/src/main/java/io/netty/util/concurrent/SingleThreadEventExecutor.java index 21703e268e..e077196c65 100644 --- a/common/src/main/java/io/netty/util/concurrent/SingleThreadEventExecutor.java +++ b/common/src/main/java/io/netty/util/concurrent/SingleThreadEventExecutor.java @@ -329,9 +329,6 @@ public abstract class SingleThreadEventExecutor extends AbstractScheduledEventEx /** * Return the number of tasks that are pending for processing. - * - * Be aware that this operation may be expensive as it depends on the internal implementation of the - * SingleThreadEventExecutor. So use it with care! */ public int pendingTasks() { return taskQueue.size();