ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/jtreg/util/Collections/EmptyNavigableSet.java
(Generate patch)

Comparing jsr166/src/test/jtreg/util/Collections/EmptyNavigableSet.java (file contents):
Revision 1.11 by jsr166, Mon Jan 8 03:12:03 2018 UTC vs.
Revision 1.12 by jsr166, Wed Jan 17 03:53:47 2018 UTC

# Line 163 | Line 163 | public class EmptyNavigableSet {
163       */
164      @Test(dataProvider = "NavigableSet<?>", dataProviderClass = EmptyNavigableSet.class)
165      public void testEmptyIterator(String description, NavigableSet<?> navigableSet) {
166 <        Iterator emptyIterator = navigableSet.iterator();
167 <
168 <        assertFalse((emptyIterator != null) && (emptyIterator.hasNext()),
169 <            "The iterator is not empty.");
166 >        assertFalse(navigableSet.iterator().hasNext(), "The iterator is not empty.");
167      }
168  
169      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines