--- jsr166/src/test/jtreg/util/Collections/EmptyIterator.java 2011/12/06 04:37:55 1.4 +++ jsr166/src/test/jtreg/util/Collections/EmptyIterator.java 2012/02/08 00:01:38 1.5 @@ -60,14 +60,12 @@ public class EmptyIterator { } void testEmptyEnumeration(final Enumeration e) { - check(e == emptyEnumeration()); check(! e.hasMoreElements()); THROWS(NoSuchElementException.class, new F(){void f(){ e.nextElement(); }}); } void testEmptyIterator(final Iterator it) { - check(it == emptyIterator()); check(! it.hasNext()); THROWS(NoSuchElementException.class, new F(){void f(){ it.next(); }}); @@ -76,7 +74,6 @@ public class EmptyIterator { } void testEmptyMap(Map m) { - check(m == emptyMap()); check(m.entrySet().iterator() == Collections.>emptyIterator()); check(m.values().iterator() == emptyIterator()); @@ -111,11 +108,6 @@ public class EmptyIterator { void testEmptyCollection(final Collection c) { testEmptyIterator(c.iterator()); - - check(c.iterator() == emptyIterator()); - if (c instanceof List) - check(((List)c).listIterator() == emptyListIterator()); - testToArray(c); }