diff --git a/src/test/org/apache/commons/collections/bag/TestTreeBag.java b/src/test/org/apache/commons/collections/bag/TestTreeBag.java index a482bef5c..21f544115 100644 --- a/src/test/org/apache/commons/collections/bag/TestTreeBag.java +++ b/src/test/org/apache/commons/collections/bag/TestTreeBag.java @@ -40,7 +40,7 @@ public class TestTreeBag extends AbstractTestSortedBag { // TODO: Generics (for example... is this even needed?) public void testCollections265() { - Bag bag = new TreeBag(); + Bag bag = new TreeBag(); try { bag.add(new Object()); fail("IllegalArgumentException expected"); diff --git a/src/test/org/apache/commons/collections/buffer/TestUnboundedFifoBuffer.java b/src/test/org/apache/commons/collections/buffer/TestUnboundedFifoBuffer.java index 48a843a5c..0ed117594 100644 --- a/src/test/org/apache/commons/collections/buffer/TestUnboundedFifoBuffer.java +++ b/src/test/org/apache/commons/collections/buffer/TestUnboundedFifoBuffer.java @@ -433,9 +433,9 @@ public class TestUnboundedFifoBuffer extends AbstractTestCollection { //----------------------------------------------------------------------- public void testCollections220() throws Exception { - UnboundedFifoBuffer buffer = new UnboundedFifoBuffer(); + UnboundedFifoBuffer buffer = new UnboundedFifoBuffer(); - buffer = (UnboundedFifoBuffer) serializeDeserialize(buffer); + buffer = (UnboundedFifoBuffer) serializeDeserialize(buffer); // test size() gets incremented buffer.add("Foo");