27 |
|
static class DirectExecutorService extends AbstractExecutorService { |
28 |
|
public void execute(Runnable r) { r.run(); } |
29 |
|
public void shutdown() { shutdown = true; } |
30 |
< |
public List shutdownNow() { shutdown = true; return Collections.EMPTY_LIST; } |
30 |
> |
public List<Runnable> shutdownNow() { shutdown = true; return Collections.EMPTY_LIST; } |
31 |
|
public boolean isShutdown() { return shutdown; } |
32 |
|
public boolean isTerminated() { return isShutdown(); } |
33 |
|
public boolean awaitTermination(long timeout, TimeUnit unit) { return isShutdown(); } |