--- jsr166/src/test/tck/CopyOnWriteArrayListTest.java 2009/11/16 04:57:10 1.9 +++ jsr166/src/test/tck/CopyOnWriteArrayListTest.java 2009/11/16 05:30:07 1.10 @@ -11,7 +11,7 @@ import java.util.*; import java.util.concurrent.*; import java.io.*; -public class CopyOnWriteArrayListTest extends JSR166TestCase{ +public class CopyOnWriteArrayListTest extends JSR166TestCase { public static void main(String[] args) { junit.textui.TestRunner.run (suite()); @@ -21,7 +21,7 @@ public class CopyOnWriteArrayListTest ex return new TestSuite(CopyOnWriteArrayListTest.class); } - static CopyOnWriteArrayList populatedArray(int n){ + static CopyOnWriteArrayList populatedArray(int n) { CopyOnWriteArrayList a = new CopyOnWriteArrayList(); assertTrue(a.isEmpty()); for (int i = 0; i < n; ++i) @@ -411,7 +411,7 @@ public class CopyOnWriteArrayListTest ex c.add("asdadasd"); c.toArray(new Long[5]); shouldThrow(); - } catch (ArrayStoreException e){} + } catch (ArrayStoreException e) {} } /** @@ -422,7 +422,7 @@ public class CopyOnWriteArrayListTest ex CopyOnWriteArrayList c = new CopyOnWriteArrayList(); c.get(-1); shouldThrow(); - } catch (IndexOutOfBoundsException e){} + } catch (IndexOutOfBoundsException e) {} } /** @@ -435,7 +435,7 @@ public class CopyOnWriteArrayListTest ex c.add("asdad"); c.get(100); shouldThrow(); - } catch (IndexOutOfBoundsException e){} + } catch (IndexOutOfBoundsException e) {} } /** @@ -446,7 +446,7 @@ public class CopyOnWriteArrayListTest ex CopyOnWriteArrayList c = new CopyOnWriteArrayList(); c.set(-1,"qwerty"); shouldThrow(); - } catch (IndexOutOfBoundsException e){} + } catch (IndexOutOfBoundsException e) {} } /** @@ -459,7 +459,7 @@ public class CopyOnWriteArrayListTest ex c.add("asdad"); c.set(100, "qwerty"); shouldThrow(); - } catch (IndexOutOfBoundsException e){} + } catch (IndexOutOfBoundsException e) {} } /** @@ -470,7 +470,7 @@ public class CopyOnWriteArrayListTest ex CopyOnWriteArrayList c = new CopyOnWriteArrayList(); c.add(-1,"qwerty"); shouldThrow(); - } catch (IndexOutOfBoundsException e){} + } catch (IndexOutOfBoundsException e) {} } /** @@ -483,7 +483,7 @@ public class CopyOnWriteArrayListTest ex c.add("asdasdasd"); c.add(100, "qwerty"); shouldThrow(); - } catch (IndexOutOfBoundsException e){} + } catch (IndexOutOfBoundsException e) {} } /** @@ -494,7 +494,7 @@ public class CopyOnWriteArrayListTest ex CopyOnWriteArrayList c = new CopyOnWriteArrayList(); c.remove(-1); shouldThrow(); - } catch (IndexOutOfBoundsException e){} + } catch (IndexOutOfBoundsException e) {} } /** @@ -507,7 +507,7 @@ public class CopyOnWriteArrayListTest ex c.add("adasdasd"); c.remove(100); shouldThrow(); - } catch (IndexOutOfBoundsException e){} + } catch (IndexOutOfBoundsException e) {} } /** @@ -518,7 +518,7 @@ public class CopyOnWriteArrayListTest ex CopyOnWriteArrayList c = new CopyOnWriteArrayList(); c.addAll(-1,new LinkedList()); shouldThrow(); - } catch (IndexOutOfBoundsException e){} + } catch (IndexOutOfBoundsException e) {} } /** @@ -531,7 +531,7 @@ public class CopyOnWriteArrayListTest ex c.add("asdasdasd"); c.addAll(100, new LinkedList()); shouldThrow(); - } catch (IndexOutOfBoundsException e){} + } catch (IndexOutOfBoundsException e) {} } /** @@ -542,7 +542,7 @@ public class CopyOnWriteArrayListTest ex CopyOnWriteArrayList c = new CopyOnWriteArrayList(); c.listIterator(-1); shouldThrow(); - } catch (IndexOutOfBoundsException e){} + } catch (IndexOutOfBoundsException e) {} } /** @@ -555,7 +555,7 @@ public class CopyOnWriteArrayListTest ex c.add("asdasdas"); c.listIterator(100); shouldThrow(); - } catch (IndexOutOfBoundsException e){} + } catch (IndexOutOfBoundsException e) {} } /** @@ -567,7 +567,7 @@ public class CopyOnWriteArrayListTest ex c.subList(-1,100); shouldThrow(); - } catch (IndexOutOfBoundsException e){} + } catch (IndexOutOfBoundsException e) {} } /** @@ -579,7 +579,7 @@ public class CopyOnWriteArrayListTest ex c.add("asdasd"); c.subList(1,100); shouldThrow(); - } catch (IndexOutOfBoundsException e){} + } catch (IndexOutOfBoundsException e) {} } /** @@ -592,7 +592,7 @@ public class CopyOnWriteArrayListTest ex c.subList(3,1); shouldThrow(); - } catch (IndexOutOfBoundsException e){} + } catch (IndexOutOfBoundsException e) {} } /** @@ -613,7 +613,7 @@ public class CopyOnWriteArrayListTest ex assertEquals(q.size(), r.size()); assertTrue(q.equals(r)); assertTrue(r.equals(q)); - } catch (Exception e){ + } catch (Exception e) { unexpectedException(); } }