jdk/src/share/classes/java/util/PriorityQueue.java
changeset 7803 56bc97d69d93
parent 5506 202f599c92aa
child 7816 55a18147b4bf
equal deleted inserted replaced
7802:74f2ee2b62ba 7803:56bc97d69d93
   536                 lastRet = -1;
   536                 lastRet = -1;
   537                 if (moved == null)
   537                 if (moved == null)
   538                     cursor--;
   538                     cursor--;
   539                 else {
   539                 else {
   540                     if (forgetMeNot == null)
   540                     if (forgetMeNot == null)
   541                         forgetMeNot = new ArrayDeque<E>();
   541                         forgetMeNot = new ArrayDeque<>();
   542                     forgetMeNot.add(moved);
   542                     forgetMeNot.add(moved);
   543                 }
   543                 }
   544             } else if (lastRetElt != null) {
   544             } else if (lastRetElt != null) {
   545                 PriorityQueue.this.removeEq(lastRetElt);
   545                 PriorityQueue.this.removeEq(lastRetElt);
   546                 lastRetElt = null;
   546                 lastRetElt = null;