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

Comparing jsr166/src/test/tck/VectorTest.java (file contents):
Revision 1.9 by jsr166, Tue May 8 00:32:20 2018 UTC vs.
Revision 1.10 by jsr166, Fri Feb 22 19:27:47 2019 UTC

# Line 440 | Line 440 | public class VectorTest extends JSR166Te
440              assertEquals(n, v.size());
441              assertNull(v.get(0));
442              assertNull(v.get(n - 1));
443 <            assertThrows(
444 <                    ArrayIndexOutOfBoundsException.class,
445 <                    new Runnable() { public void run() { v.setSize(-1); }});
443 >            assertThrows(ArrayIndexOutOfBoundsException.class,
444 >                () -> v.setSize(-1));
445              assertEquals(n, v.size());
446              assertNull(v.get(0));
447              assertNull(v.get(n - 1));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines