# | 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( |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |