# | Line 154 | Line 154 | public abstract class AbstractQueue<E> | |
---|---|---|
154 | if (c == this) | |
155 | throw new IllegalArgumentException(); | |
156 | boolean modified = false; | |
157 | < | Iterator<? extends E> e = c.iterator(); |
158 | < | while (e.hasNext()) { |
159 | < | if (add(e.next())) |
157 | > | for (E e : c) |
158 | > | if (add(e)) |
159 | modified = true; | |
161 | – | } |
160 | return modified; | |
161 | } | |
162 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |