[cvs] / jsr166 / src / test / tck / AbstractExecutorServiceTest.java Repository:
ViewVC logotype

Diff of /jsr166/src/test/tck/AbstractExecutorServiceTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1, Wed Dec 10 01:51:12 2003 UTC revision 1.2, Wed Dec 10 02:24:00 2003 UTC
# Line 27  Line 27 
27      static class DirectExecutorService extends AbstractExecutorService {      static class DirectExecutorService extends AbstractExecutorService {
28          public void execute(Runnable r) { r.run(); }          public void execute(Runnable r) { r.run(); }
29          public void shutdown() { shutdown = true; }          public void shutdown() { shutdown = true; }
30          public List shutdownNow() { shutdown = true; return Collections.EMPTY_LIST; }          public List<Runnable> shutdownNow() { shutdown = true; return Collections.EMPTY_LIST; }
31          public boolean isShutdown() { return shutdown; }          public boolean isShutdown() { return shutdown; }
32          public boolean isTerminated() { return isShutdown(); }          public boolean isTerminated() { return isShutdown(); }
33          public boolean awaitTermination(long timeout, TimeUnit unit) { return isShutdown(); }          public boolean awaitTermination(long timeout, TimeUnit unit) { return isShutdown(); }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8