< prev index next >
src/java.base/share/classes/java/util/concurrent/LinkedBlockingDeque.java
Print this page
*** 157,169 ****
--- 157,171 ----
/** Main lock guarding all access */
final ReentrantLock lock = new ReentrantLock();
/** Condition for waiting takes */
+ @SuppressWarnings("serial") // Not statically typed as Serializable
private final Condition notEmpty = lock.newCondition();
/** Condition for waiting puts */
+ @SuppressWarnings("serial") // Not statically typed as Serializable
private final Condition notFull = lock.newCondition();
/**
* Creates a {@code LinkedBlockingDeque} with a capacity of
* {@link Integer#MAX_VALUE}.
< prev index next >