--- jsr166/src/test/tck/LinkedListTest.java 2009/11/02 20:28:31 1.10 +++ jsr166/src/test/tck/LinkedListTest.java 2009/11/16 04:57:10 1.11 @@ -26,7 +26,7 @@ public class LinkedListTest extends JSR1 private LinkedList populatedQueue(int n) { LinkedList q = new LinkedList(); assertTrue(q.isEmpty()); - for(int i = 0; i < n; ++i) + for (int i = 0; i < n; ++i) assertTrue(q.offer(new Integer(i))); assertFalse(q.isEmpty()); assertEquals(n, q.size()); @@ -169,7 +169,7 @@ public class LinkedListTest extends JSR1 m.add(new Object()); l.addAll(4,m); shouldThrow(); - } catch(IndexOutOfBoundsException success) {} + } catch (IndexOutOfBoundsException success) {} } /** @@ -183,7 +183,7 @@ public class LinkedListTest extends JSR1 m.add(new Object()); l.addAll(-1,m); shouldThrow(); - } catch(IndexOutOfBoundsException success){} + } catch (IndexOutOfBoundsException success){} } /** @@ -339,7 +339,7 @@ public class LinkedListTest extends JSR1 LinkedList q = populatedQueue(SIZE); Object[] o = q.toArray(); Arrays.sort(o); - for(int i = 0; i < o.length; i++) + for (int i = 0; i < o.length; i++) assertEquals(o[i], q.poll()); } @@ -351,7 +351,7 @@ public class LinkedListTest extends JSR1 Integer[] ints = new Integer[SIZE]; ints = (Integer[])q.toArray(ints); Arrays.sort(ints); - for(int i = 0; i < ints.length; i++) + for (int i = 0; i < ints.length; i++) assertEquals(ints[i], q.poll()); } @@ -364,7 +364,7 @@ public class LinkedListTest extends JSR1 l.add(new Object()); Object o[] = l.toArray(null); shouldThrow(); - } catch(NullPointerException success){} + } catch (NullPointerException success){} } /** @@ -376,7 +376,7 @@ public class LinkedListTest extends JSR1 l.add(new Integer(5)); Object o[] = l.toArray(new String[10] ); shouldThrow(); - } catch(ArrayStoreException success){} + } catch (ArrayStoreException success){} } /** @@ -386,7 +386,7 @@ public class LinkedListTest extends JSR1 LinkedList q = populatedQueue(SIZE); int i = 0; Iterator it = q.iterator(); - while(it.hasNext()) { + while (it.hasNext()) { assertTrue(q.contains(it.next())); ++i; } @@ -434,7 +434,7 @@ public class LinkedListTest extends JSR1 LinkedList q = populatedQueue(SIZE); int i = 0; Iterator it = q.descendingIterator(); - while(it.hasNext()) { + while (it.hasNext()) { assertTrue(q.contains(it.next())); ++i; } @@ -442,7 +442,7 @@ public class LinkedListTest extends JSR1 assertFalse(it.hasNext()); try { it.next(); - } catch(NoSuchElementException success) { + } catch (NoSuchElementException success) { } }