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.5 by dl, Mon Nov 28 15:40:56 2005 UTC vs.
Revision 1.6 by jsr166, Thu Oct 29 23:09:07 2009 UTC

# Line 94 | Line 94 | public class ListBash {
94              sum -= (s2.get(k)).intValue();
95          }
96          if (sum == 0) System.out.print(" ");
97 <    }    
97 >    }
98  
99      static void sets(List<Integer> s1, List<Integer> s2) {
100          List<Integer> intersection = clone(s1, cl,synch);intersection.retainAll(s2);
# Line 159 | Line 159 | public class ListBash {
159              while(it.hasNext())
160                  if((it.next()).intValue() % 2 == 1)
161                      fail("Failed to remove all odd nubmers.");
162 <            
162 >
163              for (int i=0; i<(listSize/2); i++)
164                  odd.remove(i);
165              for (int i=0; i<(listSize/2); i++) {
# Line 173 | Line 173 | public class ListBash {
173                  all.add(2*i, even.get(i));
174              if (!all.equals(s))
175                  fail("Failed to reconstruct ints from odds and evens.");
176 <            
176 >
177              all = clone(odd,  cl, synch);
178              ListIterator<Integer> itAll = all.listIterator(all.size());
179              ListIterator<Integer> itEven = even.listIterator(even.size());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines