# | Line 540 | Line 540 | public class JSR166TestCase extends Test | |
---|---|---|
540 | public String call() { return TEST_STRING; } | |
541 | } | |
542 | ||
543 | + | public Callable<String> latchAwaitingStringTask(final CountDownLatch latch) { |
544 | + | return new CheckedCallable<String>() { |
545 | + | public String realCall() { |
546 | + | try { |
547 | + | latch.await(); |
548 | + | } catch (InterruptedException quittingTime) {} |
549 | + | return TEST_STRING; |
550 | + | }}; |
551 | + | } |
552 | + | |
553 | public static class NPETask implements Callable<String> { | |
554 | public String call() { throw new NullPointerException(); } | |
555 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |