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

Comparing jsr166/src/test/tck/CyclicBarrierTest.java (file contents):
Revision 1.28 by jsr166, Thu Sep 15 01:18:01 2016 UTC vs.
Revision 1.30 by jsr166, Sun Jan 7 23:11:07 2018 UTC

# Line 39 | Line 39 | public class CyclicBarrierTest extends J
39      }
40  
41      /**
42 <     * Creating with negative parties throws IAE
42 >     * Creating with negative parties throws IllegalArgumentException
43       */
44      public void testConstructor1() {
45          try {
# Line 49 | Line 49 | public class CyclicBarrierTest extends J
49      }
50  
51      /**
52 <     * Creating with negative parties and no action throws IAE
52 >     * Creating with negative parties and no action throws
53 >     * IllegalArgumentException
54       */
55      public void testConstructor2() {
56          try {
# Line 307 | Line 308 | public class CyclicBarrierTest extends J
308                          c.await();
309                          shouldThrow();
310                      }
311 <                    catch (BrokenBarrierException ok) {}
311 <                    catch (InterruptedException ok) {}
311 >                    catch (BrokenBarrierException | InterruptedException ok) {}
312                  }}});
313  
314          for (int i = 0; i < 4; i++) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines