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

Comparing jsr166/src/main/java/util/concurrent/LinkedBlockingQueue.java (file contents):
Revision 1.92 by jsr166, Tue Feb 17 18:55:39 2015 UTC vs.
Revision 1.93 by jsr166, Sat Feb 28 22:37:01 2015 UTC

# Line 479 | Line 479 | public class LinkedBlockingQueue<E> exte
479          takeLock.lock();
480          try {
481              Node<E> first = head.next;
482 <            if (first == null)
483 <                return null;
484 <            else
485 <                return first.item;
482 >            return (first == null) ? null : first.item;
483          } finally {
484              takeLock.unlock();
485          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines