ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/jtreg/util/Collections/Disjoint.java
(Generate patch)

Comparing jsr166/src/test/jtreg/util/Collections/Disjoint.java (file contents):
Revision 1.2 by jsr166, Sun Sep 5 21:32:19 2010 UTC vs.
Revision 1.6 by jsr166, Wed Jan 4 04:46:18 2017 UTC

# Line 26 | Line 26
26   * @bug     4339792
27   * @summary Basic test for Collections.disjoint
28   * @author  Josh Bloch
29 < *
30 < * @compile -source 1.5 Disjoint.java
31 < * @run main Disjoint
29 > * @key randomness
30   */
31  
32   import java.util.*;
33  
34   public class Disjoint {
35 <    final static int N = 20;
35 >    static final int N = 20;
36  
37      public static void main(String args[]) {
38          // Make an array of lists each of which shares a single element
# Line 44 | Line 42 | public class Disjoint {
42          int x = 0;
43          for (int i = 0; i < N; i++) {
44              int size = rnd.nextInt(10) + 2;
45 <            List<Integer> list = new ArrayList<Integer>(size);
45 >            List<Integer> list = new ArrayList<>(size);
46              for (int j = 1; j < size; j++)
47                  list.add(x++);
48              list.add(x);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines