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.7 by jsr166, Tue Apr 3 00:59:22 2018 UTC vs.
Revision 1.8 by jsr166, Tue Apr 3 05:49:44 2018 UTC

# Line 30 | Line 30 | public class VectorTest extends JSR166Te
30          }
31          class SubListImplementation extends Implementation {
32              public List emptyCollection() {
33 <                return super.emptyCollection().subList(0, 0);
33 >                List list = super.emptyCollection();
34 >                ThreadLocalRandom rnd = ThreadLocalRandom.current();
35 >                if (rnd.nextBoolean())
36 >                    list.add(makeElement(rnd.nextInt()));
37 >                int i = rnd.nextInt(list.size() + 1);
38 >                return list.subList(i, i);
39              }
40          }
41          return newTestSuite(

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines