--- jsr166/src/test/tck/AbstractQueueTest.java 2010/08/25 00:07:02 1.4 +++ jsr166/src/test/tck/AbstractQueueTest.java 2011/05/27 19:07:06 1.8 @@ -1,12 +1,11 @@ /* * Written by 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 + * http://creativecommons.org/publicdomain/zero/1.0/ * Other contributors include Andrew Wright, Jeffrey Hayes, * Pat Fisher, Mike Judd. */ - import junit.framework.*; import java.util.*; import java.util.concurrent.*; @@ -92,7 +91,6 @@ public class AbstractQueueTest extends J } catch (NoSuchElementException success) {} } - /** * element returns normally if peek succeeds */ @@ -113,7 +111,7 @@ public class AbstractQueueTest extends J } /** - * addAll(null) throws NPE + * addAll(null) throws NPE */ public void testAddAll1() { try { @@ -134,9 +132,8 @@ public class AbstractQueueTest extends J } catch (IllegalArgumentException success) {} } - /** - * addAll of a collection with null elements throws NPE + * addAll of a collection with null elements throws NPE */ public void testAddAll2() { try { @@ -146,6 +143,7 @@ public class AbstractQueueTest extends J shouldThrow(); } catch (NullPointerException success) {} } + /** * addAll of a collection with any null elements throws NPE after * possibly adding some elements @@ -160,6 +158,7 @@ public class AbstractQueueTest extends J shouldThrow(); } catch (NullPointerException success) {} } + /** * addAll throws ISE if an add fails */