# | Line 209 | Line 209 | public class ScheduledThreadPoolExecutor | |
---|---|---|
209 | } | |
210 | } | |
211 | ||
212 | + | public boolean remove(Runnable task) { |
213 | + | if (!(task instanceof ScheduledFutureTask)) |
214 | + | return false; |
215 | + | return getQueue().remove(task); |
216 | + | } |
217 | + | |
218 | /** | |
219 | * Creates a new ScheduledThreadPoolExecutor with the given core | |
220 | * pool size. |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |