@Test public void testCancelWithNoFuture() { TestScheduledRunnable testScheduledRunnable = new TestScheduledRunnable(); testScheduledRunnable.cancel(); }
@Override public void cancel() { if (future != null) { future.cancel(false); } }
ScheduledRunnable implements Runnable, Cancellable { @Override public void cancel() { if (future != null) { future.cancel(false); } } }
ScheduledRunnable implements Runnable, Cancellable { @Override public void cancel() { if (future != null) { future.cancel(false); } }  }
ScheduledRunnable implements Runnable, Cancellable { @Override public void cancel() { if (future != null) { future.cancel(false); } }  void scheduleWithFixedDelay(ScheduledExecutorService scheduledExecutor, long period,
            TimeUnit unit); void scheduleWithFixedDelay(ScheduledExecutorService scheduledExecutor,
            long initialDelay, long period, TimeUnit unit); @Override void run(); @Override void cancel(); }
ScheduledRunnable implements Runnable, Cancellable { @Override public void cancel() { if (future != null) { future.cancel(false); } }  void scheduleWithFixedDelay(ScheduledExecutorService scheduledExecutor, long period,
            TimeUnit unit); void scheduleWithFixedDelay(ScheduledExecutorService scheduledExecutor,
            long initialDelay, long period, TimeUnit unit); @Override void run(); @Override void cancel();  }