# | Line 117 | Line 117 | public class ExchangerTest extends JSR16 | |
---|---|---|
117 | /** | |
118 | * If one exchanging thread is interrupted, another succeeds. | |
119 | */ | |
120 | < | public void testReplacementAfterExchange() throws InterruptedException { |
120 | > | public void testReplacementAfterExchange() { |
121 | final Exchanger e = new Exchanger(); | |
122 | final CountDownLatch exchanged = new CountDownLatch(2); | |
123 | final CountDownLatch interrupted = new CountDownLatch(1); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |