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

Comparing jsr166/src/test/loops/NavigableSetCheck.java (file contents):
Revision 1.8 by jsr166, Tue Mar 15 19:47:05 2011 UTC vs.
Revision 1.10 by jsr166, Thu Dec 18 18:43:22 2014 UTC

# Line 25 | Line 25 | public class NavigableSetCheck {
25      }
26  
27      public static void main(String[] args) throws Exception {
28 <        Class setClass = null;
28 >        Class<?> setClass = null;
29          int numTests = 50;
30          int size = 50000;
31  
# Line 68 | Line 68 | public class NavigableSetCheck {
68  
69      }
70  
71 <    static NavigableSet newSet(Class cl) {
71 >    static NavigableSet newSet(Class<?> cl) {
72          try {
73              NavigableSet m = (NavigableSet) cl.newInstance();
74              return m;
# Line 447 | Line 447 | public class NavigableSetCheck {
447  
448      static void shuffle(Integer[] keys) {
449          int size = keys.length;
450 <        for (int i=size; i>1; i--) {
450 >        for (int i = size; i > 1; i--) {
451              int r = rng.nextInt(i);
452              Integer t = keys[i-1];
453              keys[i-1] = keys[r];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines