711 |
|
Integer x = (Integer) it.next(); |
712 |
|
assertEquals(s + i, (int) x); |
713 |
|
for (Object[] a : as) |
714 |
< |
assertSame(a1[i], x); |
714 |
> |
assertSame(a[i], x); |
715 |
|
} |
716 |
|
} |
717 |
|
|
745 |
|
ArrayDeque l = new ArrayDeque(); |
746 |
|
l.add(new Object()); |
747 |
|
try { |
748 |
< |
l.toArray(null); |
748 |
> |
l.toArray((Object[])null); |
749 |
|
shouldThrow(); |
750 |
|
} catch (NullPointerException success) {} |
751 |
|
} |
912 |
|
} |
913 |
|
|
914 |
|
/** |
915 |
< |
* A deserialized serialized deque has same elements in same order |
915 |
> |
* A deserialized/reserialized deque has same elements in same order |
916 |
|
*/ |
917 |
|
public void testSerialization() throws Exception { |
918 |
|
Queue x = populatedDeque(SIZE); |