ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/ThreadPoolExecutorTest.java
(Generate patch)

Comparing jsr166/src/test/tck/ThreadPoolExecutorTest.java (file contents):
Revision 1.19 by dl, Sat Apr 10 14:27:17 2004 UTC vs.
Revision 1.20 by dl, Mon Apr 12 12:03:10 2004 UTC

# Line 39 | Line 39 | public class ThreadPoolExecutorTest exte
39      static class FailingThreadFactory implements ThreadFactory{
40          int calls = 0;
41          public Thread newThread(Runnable r){
42 <            if (++calls > 1) throw new NullPointerException();
42 >            if (++calls > 1) return null;
43              return new Thread(r);
44          }  
45      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines