--- jsr166/src/test/loops/ListBash.java 2010/09/01 07:20:36 1.10 +++ jsr166/src/test/loops/ListBash.java 2013/07/14 22:29:33 1.14 @@ -1,7 +1,7 @@ /* * Written by Josh Bloch and 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 + * explained at http://creativecommons.org/publicdomain/zero/1.0/ */ import java.util.*; @@ -25,7 +25,7 @@ public class ListBash { fail("Class " + args[0] + " not found."); } - synch = (args.length>3); + synch = (args.length > 3); oneRun(); oneRun(); oneRun(); @@ -33,11 +33,11 @@ public class ListBash { static void oneRun() { long startTime = System.nanoTime(); - for (int i=0; i s = newList(cl, synch); - for (int i=0; i itAll = all.listIterator(all.size()); ListIterator itEven = even.listIterator(even.size()); while (itEven.hasPrevious()) { @@ -205,7 +205,7 @@ public class ListBash { Object o = it.next(); if (all.indexOf(o) != all.lastIndexOf(o)) fail("Apparent duplicate detected."); - if (all.subList(i, all.size()).indexOf(o) != 0) { + if (all.subList(i, all.size()).indexOf(o) != 0) { System.out.println("s0: " + all.subList(i, all.size()).indexOf(o)); fail("subList/indexOf is screwy."); } @@ -272,16 +272,16 @@ public class ListBash { } static void AddRandoms(List s, int n) { - for (int i=0; i