# | Line 182 | Line 182 | public class Collection8Test extends JSR | |
---|---|---|
182 | () -> c.iterator().forEachRemaining(null), | |
183 | () -> c.spliterator().forEachRemaining(null), | |
184 | () -> c.spliterator().tryAdvance(null), | |
185 | < | () -> c.toArray(null)); |
185 | > | () -> c.toArray((Object[])null)); |
186 | ||
187 | if (!impl.permitsNulls()) { | |
188 | assertThrows( | |
# | Line 610 | Line 610 | public class Collection8Test extends JSR | |
610 | if (rnd.nextBoolean()) assertTrue(it.hasNext()); | |
611 | assertTrue(copy.contains(it.next())); | |
612 | } | |
613 | + | if (rnd.nextBoolean()) assertTrue(it.hasNext()); |
614 | it.forEachRemaining( | |
615 | e -> { | |
616 | assertTrue(c.contains(e)); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |