RFR 7118066: Warnings in java.util.concurrent package (original) (raw)
Chris Hegarty chris.hegarty at oracle.com
Thu Dec 8 11:33:36 UTC 2011
- Previous message: RFR 7118066: Warnings in java.util.concurrent package
- Next message: RFR 7118066: Warnings in java.util.concurrent package
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 08/12/2011 05:13, David Holmes wrote:
....
I also think the SynchronousQueue has no business being used in this test. Though I confess I'm unclear what this test is for - is it for emptyIterator() or for "iterators of empty collections" ?
Thanks David, so the proposed change is to simple remove SynchronousQueue.
--- a/test/java/util/Collections/EmptyIterator.java Wed Dec 07 10:17:34 2011 +0000 +++ b/test/java/util/Collections/EmptyIterator.java Thu Dec 08 11:28:16 2011 +0000 @@ -35,8 +35,6 @@ public class EmptyIterator { void test(String[] args) throws Throwable { testEmptyCollection(Collections.emptyList()); testEmptyCollection(Collections.emptySet());
testEmptyCollection(new java.util.concurrent.
SynchronousQueue<Object>()); testEmptyMap(Collections.<Object, Object>emptyMap());
Since it is trivial, I'll push it with the warning changes.
-Chris.
David -----
- Previous message: RFR 7118066: Warnings in java.util.concurrent package
- Next message: RFR 7118066: Warnings in java.util.concurrent package
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]