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

Comparing jsr166/src/test/loops/CollectionWordLoops.java (file contents):
Revision 1.5 by jsr166, Mon Nov 2 23:51:32 2009 UTC vs.
Revision 1.7 by jsr166, Mon Dec 5 04:08:46 2011 UTC

# Line 1 | Line 1
1   /*
2   * Written by Doug Lea with assistance from members of JCP JSR-166
3   * Expert Group and released to the public domain, as explained at
4 < * http://creativecommons.org/licenses/publicdomain
4 > * http://creativecommons.org/publicdomain/zero/1.0/
5   */
6   import java.util.*;
7   import java.io.*;
# Line 114 | Line 114 | public class CollectionWordLoops {
114          long startTime = System.currentTimeMillis();
115          runner.run();
116          long afterRun = System.currentTimeMillis();
117 <        long runTime =  (afterRun - startTime);
117 >        long runTime = afterRun - startTime;
118          int np = runner.total;
119          if (runner.total == runner.hashCode())
120              System.out.println("Useless Number" + runner.total);
# Line 173 | Line 173 | public class CollectionWordLoops {
173                  if (r < pctrem) {
174                      collection.remove(k);
175                      ++nremoves;
176 <                    j += ((r >>> 8) & 7) +  n / 2;
176 >                    j += ((r >>> 8) & 7) + n / 2;
177                      if (j >= n) j -= n;
178                  }
179              }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines