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.114 by jsr166, Mon Oct 1 00:10:53 2018 UTC vs.
Revision 1.115 by jsr166, Thu Oct 17 01:51:38 2019 UTC

# Line 127 | Line 127 | public class LinkedBlockingQueue<E> exte
127      private final ReentrantLock takeLock = new ReentrantLock();
128  
129      /** Wait queue for waiting takes */
130 +    @SuppressWarnings("serial") // Classes implementing Condition may be serializable.
131      private final Condition notEmpty = takeLock.newCondition();
132  
133      /** Lock held by put, offer, etc */
134      private final ReentrantLock putLock = new ReentrantLock();
135  
136      /** Wait queue for waiting puts */
137 +    @SuppressWarnings("serial") // Classes implementing Condition may be serializable.
138      private final Condition notFull = putLock.newCondition();
139  
140      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines