@Test public void ignoredCancellation() { ScheduledFuture<?> fut = Objects.getThreadPool().schedule(new Runnable() { @Override public void run() { } }, 10, TimeUnit.SECONDS); fut.cancel(true); }
public static ScheduledThreadPoolExecutor getThreadPool() { if (THREAD_POOL == null) { THREAD_POOL = SharedObjects.getThreadPool(); } return THREAD_POOL; }
Objects { public static ScheduledThreadPoolExecutor getThreadPool() { if (THREAD_POOL == null) { THREAD_POOL = SharedObjects.getThreadPool(); } return THREAD_POOL; } }
Objects { public static ScheduledThreadPoolExecutor getThreadPool() { if (THREAD_POOL == null) { THREAD_POOL = SharedObjects.getThreadPool(); } return THREAD_POOL; }  }
Objects { public static ScheduledThreadPoolExecutor getThreadPool() { if (THREAD_POOL == null) { THREAD_POOL = SharedObjects.getThreadPool(); } return THREAD_POOL; }  @SuppressWarnings("unused") static ScheduledThreadPoolExecutor createThreadPool(); static ScheduledThreadPoolExecutor createThreadPool(int size); static ScheduledThreadPoolExecutor getThreadPool(); @SuppressWarnings("unused") static void setThreadPool(ScheduledThreadPoolExecutor stpe); static ScheduledThreadPoolExecutor createDaemonThreadPool(); static ScheduledThreadPoolExecutor createDaemonThreadPool(int size); static ScheduledThreadPoolExecutor getDaemonThreadPool(); @SuppressWarnings("unused") static void setDaemonThreadPool(ScheduledThreadPoolExecutor stpe); }
Objects { public static ScheduledThreadPoolExecutor getThreadPool() { if (THREAD_POOL == null) { THREAD_POOL = SharedObjects.getThreadPool(); } return THREAD_POOL; }  @SuppressWarnings("unused") static ScheduledThreadPoolExecutor createThreadPool(); static ScheduledThreadPoolExecutor createThreadPool(int size); static ScheduledThreadPoolExecutor getThreadPool(); @SuppressWarnings("unused") static void setThreadPool(ScheduledThreadPoolExecutor stpe); static ScheduledThreadPoolExecutor createDaemonThreadPool(); static ScheduledThreadPoolExecutor createDaemonThreadPool(int size); static ScheduledThreadPoolExecutor getDaemonThreadPool(); @SuppressWarnings("unused") static void setDaemonThreadPool(ScheduledThreadPoolExecutor stpe);  }