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

Comparing jsr166/src/test/loops/Finals.java (file contents):
Revision 1.3 by jsr166, Thu Oct 29 23:09:07 2009 UTC vs.
Revision 1.5 by jsr166, Tue Mar 15 19:47:05 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  
7   public class Finals {
# Line 40 | Line 40 | public class Finals {
40              long s = initialSeed(this);
41              int n = iters;
42              while (!done && n-- > 0) {
43 <                int k = (int)(s & (LEN-1));
43 >                int k = (int) (s & (LEN-1));
44                  int l = (k+1) & (LEN-1);
45                  nums[k] = new Long(s);
46                  nums[l] = new Long(s);
# Line 57 | Line 57 | public class Finals {
57              int n = iters;
58              long s = initialSeed(this);
59              while (s != 0 && n > 0) {
60 <                long nexts = nums[(int)(s & (LEN-1))].longValue();
60 >                long nexts = nums[(int) (s & (LEN-1))].longValue();
61                  if (nexts != s)
62                      --n;
63                  else if (done)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines