--- jsr166/src/test/loops/FinalLongTest.java 2009/11/03 01:04:02 1.4 +++ jsr166/src/test/loops/FinalLongTest.java 2015/01/15 18:34:19 1.8 @@ -1,13 +1,13 @@ /* * Written by Doug Lea with assistance from members of JCP JSR-166 * Expert Group and released to the public domain, as explained at - * http://creativecommons.org/licenses/publicdomain + * http://creativecommons.org/publicdomain/zero/1.0/ */ public class FinalLongTest { static int npairs = 2; static int iters = 10000000; - static int LEN = 2; + static int LEN = 2; static final Long[] nums = new Long[LEN]; static volatile boolean done; static volatile long total; @@ -16,7 +16,6 @@ public class FinalLongTest { static Long n2 = new Long(23); static Long n3 = new Long(23); - public static void main(String[] args) { for (int i = 0; i < LEN; ++i) nums[i] = new Long(i+1); @@ -51,8 +50,8 @@ public class FinalLongTest { // if (k < 0 || k >= LEN) k = 1; // int l = (k+1) & (LEN-1); // if (l < 0 || l >= LEN) l = 0; - // int k = (s & 1) == 0? 0 : 1; - // int l = (k == 0)? 1 : 0; + // int k = (s & 1) == 0 ? 0 : 1; + // int l = (k == 0) ? 1 : 0; if ((s & (LEN-1)) == 0) { n3 = n1; n0 = new Long(s);