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.74 by jsr166, Tue Jun 21 19:29:21 2011 UTC vs.
Revision 1.75 by jsr166, Tue Jun 21 19:47:21 2011 UTC

# Line 730 | Line 730 | public class PriorityBlockingQueue<E> ex
730          lock.lock();
731          try {
732              int n = 0;
733 <            E e;
734 <            while ( (e = extract()) != null) {
733 >            for (E e; (e = extract()) != null;) {
734                  c.add(e);
735                  ++n;
736              }
# Line 758 | Line 757 | public class PriorityBlockingQueue<E> ex
757          lock.lock();
758          try {
759              int n = 0;
760 <            E e;
762 <            while (n < maxElements && (e = extract()) != null) {
760 >            for (E e; n < maxElements && (e = extract()) != null;) {
761                  c.add(e);
762                  ++n;
763              }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines