# | 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 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |