< prev index next >

test/jdk/java/util/concurrent/tck/LinkedListTest.java

Print this page
rev 48215 : 8060192: Add default method <A> A[] Collection.toArray(IntFunction<A[]> generator)
Reviewed-by: martin, forax, psandoz

*** 400,410 **** */ public void testToArray_NullArg() { LinkedList l = new LinkedList(); l.add(new Object()); try { ! l.toArray(null); shouldThrow(); } catch (NullPointerException success) {} } /** --- 400,410 ---- */ public void testToArray_NullArg() { LinkedList l = new LinkedList(); l.add(new Object()); try { ! l.toArray((Object[])null); shouldThrow(); } catch (NullPointerException success) {} } /**
< prev index next >