From 1ae185053497f35a9fd6802d35d8b7f7cdc9dfd8 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Fri, 22 Oct 2010 01:29:16 +0000 Subject: [PATCH] Generics git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1026194 13f79535-47bb-0310-9956-ffa450edef68 --- src/test/org/apache/commons/collections/bag/TestTreeBag.java | 2 +- .../commons/collections/buffer/TestUnboundedFifoBuffer.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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");