# | Line 462 | Line 462 | public class PriorityQueue<E> extends Ab | |
---|---|---|
462 | cursor--; | |
463 | } else { | |
464 | if (forgetMeNot == null) | |
465 | < | forgetMeNot = new ArrayList(); |
465 | > | forgetMeNot = new ArrayList<E>(); |
466 | forgetMeNot.add(moved); | |
467 | } | |
468 | } else if (lastRetElt != null) { | |
# | Line 669 | Line 669 | public class PriorityQueue<E> extends Ab | |
669 | ||
670 | // Read in all elements in the proper order. | |
671 | for (int i=0; i<size; i++) | |
672 | < | queue[i] = s.readObject(); |
672 | > | queue[i] = (E) s.readObject(); |
673 | } | |
674 | ||
675 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |