--- jsr166/src/test/loops/ListBash.java 2010/09/01 07:20:36 1.10 +++ jsr166/src/test/loops/ListBash.java 2011/12/05 04:08:46 1.13 @@ -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.*; @@ -174,7 +174,7 @@ public class ListBash { if (!all.equals(s)) fail("Failed to reconstruct ints from odds and evens."); - all = clone(odd, cl, synch); + all = clone(odd, cl, synch); ListIterator 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."); } @@ -278,10 +278,10 @@ public class ListBash { int preSize = s.size(); if (!s.add(e)) - fail ("Add failed."); + fail("Add failed."); int postSize = s.size(); if (postSize-preSize != 1) - fail ("Add didn't increase size by 1."); + fail("Add didn't increase size by 1."); } }