ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/PriorityBlockingQueue.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/PriorityBlockingQueue.java (file contents):
Revision 1.119 by jsr166, Wed Nov 30 03:31:47 2016 UTC vs.
Revision 1.120 by jsr166, Wed Nov 30 03:46:37 2016 UTC

# Line 850 | Line 850 | public class PriorityBlockingQueue<E> ex
850          public E next() {
851              if (cursor >= array.length)
852                  throw new NoSuchElementException();
853 <            lastRet = cursor;
854 <            return (E)array[cursor++];
853 >            return (E)array[lastRet = cursor++];
854          }
855  
856          public void remove() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines