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

Comparing jsr166/src/test/loops/ListBash.java (file contents):
Revision 1.11 by jsr166, Wed Sep 1 07:47:27 2010 UTC vs.
Revision 1.13 by jsr166, Mon Dec 5 04:08:46 2011 UTC

# Line 1 | Line 1
1   /*
2   * Written by Josh Bloch and Doug Lea with assistance from members of
3   * JCP JSR-166 Expert Group and released to the public domain, as
4 < * explained at http://creativecommons.org/licenses/publicdomain
4 > * explained at http://creativecommons.org/publicdomain/zero/1.0/
5   */
6  
7   import java.util.*;
# Line 174 | Line 174 | public class ListBash {
174              if (!all.equals(s))
175                  fail("Failed to reconstruct ints from odds and evens.");
176  
177 <            all = clone(odd,  cl, synch);
177 >            all = clone(odd, cl, synch);
178              ListIterator<Integer> itAll = all.listIterator(all.size());
179              ListIterator<Integer> itEven = even.listIterator(even.size());
180              while (itEven.hasPrevious()) {
# Line 205 | Line 205 | public class ListBash {
205              Object o = it.next();
206              if (all.indexOf(o) != all.lastIndexOf(o))
207                  fail("Apparent duplicate detected.");
208 <            if (all.subList(i,   all.size()).indexOf(o) != 0) {
208 >            if (all.subList(i, all.size()).indexOf(o) != 0) {
209                  System.out.println("s0: " + all.subList(i,   all.size()).indexOf(o));
210                  fail("subList/indexOf is screwy.");
211              }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines