--- jsr166/src/test/loops/CollectionLoops.java 2009/11/02 23:42:46 1.4 +++ jsr166/src/test/loops/CollectionLoops.java 2011/12/05 04:08:46 1.7 @@ -1,7 +1,7 @@ /* * 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/ */ @@ -120,10 +120,10 @@ public class CollectionLoops { barrier.await(); barrier.await(); long time = timer.getTime(); - long tpo = time / (i * (long)nops); + long tpo = time / (i * (long) nops); if (print) System.out.print(LoopHelpers.rightJustify(tpo) + " ns per op"); - double secs = (double)(time) / 1000000000.0; + double secs = (double) time / 1000000000.0; if (print) System.out.print("\t " + secs + "s run time"); if (checkSum == 0) System.out.print(" "); @@ -141,7 +141,7 @@ public class CollectionLoops { int total; int nops; - Runner(int id, Collection collection, Integer[] key, CyclicBarrier barrier, int nops) { + Runner(int id, Collection collection, Integer[] key, CyclicBarrier barrier, int nops) { this.collection = collection; this.key = key; this.barrier = barrier;