Generics
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1026194 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f46321a44d
commit
1ae1850534
|
@ -40,7 +40,7 @@ public class TestTreeBag<T> extends AbstractTestSortedBag<T> {
|
|||
|
||||
// TODO: Generics (for example... is this even needed?)
|
||||
public void testCollections265() {
|
||||
Bag bag = new TreeBag();
|
||||
Bag<Object> bag = new TreeBag<Object>();
|
||||
try {
|
||||
bag.add(new Object());
|
||||
fail("IllegalArgumentException expected");
|
||||
|
|
|
@ -433,9 +433,9 @@ public class TestUnboundedFifoBuffer<E> extends AbstractTestCollection<E> {
|
|||
|
||||
//-----------------------------------------------------------------------
|
||||
public void testCollections220() throws Exception {
|
||||
UnboundedFifoBuffer buffer = new UnboundedFifoBuffer();
|
||||
UnboundedFifoBuffer<String> buffer = new UnboundedFifoBuffer<String>();
|
||||
|
||||
buffer = (UnboundedFifoBuffer) serializeDeserialize(buffer);
|
||||
buffer = (UnboundedFifoBuffer<String>) serializeDeserialize(buffer);
|
||||
|
||||
// test size() gets incremented
|
||||
buffer.add("Foo");
|
||||
|
|
Loading…
Reference in New Issue