[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.25, Thu Sep 16 02:54:10 2010 UTC revision 1.26, Fri Sep 17 00:53:15 2010 UTC
# Line 29  Line 29 
29      static class DirectExecutorService extends AbstractExecutorService {      static class DirectExecutorService extends AbstractExecutorService {
30          public void execute(Runnable r) { r.run(); }          public void execute(Runnable r) { r.run(); }
31          public void shutdown() { shutdown = true; }          public void shutdown() { shutdown = true; }
32          public List<Runnable> shutdownNow() { shutdown = true; return Collections.EMPTY_LIST; }          public List<Runnable> shutdownNow() {
33                shutdown = true;
34                return Collections.EMPTY_LIST;
35            }
36          public boolean isShutdown() { return shutdown; }          public boolean isShutdown() { return shutdown; }
37          public boolean isTerminated() { return isShutdown(); }          public boolean isTerminated() { return isShutdown(); }
38          public boolean awaitTermination(long timeout, TimeUnit unit) { return isShutdown(); }          public boolean awaitTermination(long timeout, TimeUnit unit) {
39                return isShutdown();
40            }
41          private volatile boolean shutdown = false;          private volatile boolean shutdown = false;
42      }      }
43    

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8