62 |
|
private final int capacity; |
63 |
|
|
64 |
|
/** Current number of elements */ |
65 |
< |
private transient final AtomicInteger count = new AtomicInteger(0); |
65 |
> |
private final AtomicInteger count = new AtomicInteger(0); |
66 |
|
|
67 |
|
/** Head of linked list */ |
68 |
|
private transient Node<E> head; |
629 |
|
// Read in capacity, and any hidden stuff |
630 |
|
s.defaultReadObject(); |
631 |
|
|
632 |
+ |
count.set(0); |
633 |
+ |
last = head = new Node<E>(null); |
634 |
+ |
|
635 |
|
// Read in all elements and place in queue |
636 |
|
for (;;) { |
637 |
|
E item = (E)s.readObject(); |
641 |
|
} |
642 |
|
} |
643 |
|
} |
641 |
– |
|
642 |
– |
|
643 |
– |
|
644 |
– |
|
645 |
– |
|