# | Line 752 | Line 752 | public class LinkedTransferQueue<E> exte | |
---|---|---|
752 | private void writeObject(java.io.ObjectOutputStream s) | |
753 | throws java.io.IOException { | |
754 | s.defaultWriteObject(); | |
755 | < | for (Iterator<E> it = iterator(); it.hasNext(); ) |
756 | < | s.writeObject(it.next()); |
755 | > | for (E e : this) |
756 | > | s.writeObject(e); |
757 | // Use trailing null as sentinel | |
758 | s.writeObject(null); | |
759 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |