You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2013/11/03 17:52:45 UTC
svn commit: r1538399 -
/commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/LinkedBlockingDeque.java
Author: ggregory
Date: Sun Nov 3 16:52:45 2013
New Revision: 1538399
URL: http://svn.apache.org/r1538399
Log:
Add missing Javadoc tag.
Modified:
commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/LinkedBlockingDeque.java
Modified: commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/LinkedBlockingDeque.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/LinkedBlockingDeque.java?rev=1538399&r1=1538398&r2=1538399&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/LinkedBlockingDeque.java (original)
+++ commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/LinkedBlockingDeque.java Sun Nov 3 16:52:45 2013
@@ -514,6 +514,7 @@ class LinkedBlockingDeque<E> extends Abs
* to unlink if the queue is empty.
*
* @return the unlinked element
+ * @throws InterruptedException if the current thread is interrupted
*/
public E takeFirst() throws InterruptedException {
lock.lock();
@@ -532,6 +533,7 @@ class LinkedBlockingDeque<E> extends Abs
* to unlink if the queue is empty.
*
* @return the unlinked element
+ * @throws InterruptedException if the current thread is interrupted
*/
public E takeLast() throws InterruptedException {
lock.lock();
@@ -553,6 +555,7 @@ class LinkedBlockingDeque<E> extends Abs
* @param unit units that timeout is expressed in
*
* @return the unlinked element
+ * @throws InterruptedException if the current thread is interrupted
*/
public E pollFirst(long timeout, TimeUnit unit)
throws InterruptedException {
@@ -579,6 +582,7 @@ class LinkedBlockingDeque<E> extends Abs
* @param unit units that timeout is expressed in
*
* @return the unlinked element
+ * @throws InterruptedException if the current thread is interrupted
*/
public E pollLast(long timeout, TimeUnit unit)
throws InterruptedException {
@@ -752,6 +756,7 @@ class LinkedBlockingDeque<E> extends Abs
* <p>This method is equivalent to {@link #takeFirst()}.
*
* @return the unlinked element
+ * @throws InterruptedException if the current thread is interrupted
*/
public E take() throws InterruptedException {
return takeFirst();
@@ -767,6 +772,7 @@ class LinkedBlockingDeque<E> extends Abs
* @param unit units that timeout is expressed in
*
* @return the unlinked element
+ * @throws InterruptedException if the current thread is interrupted
*/
public E poll(long timeout, TimeUnit unit) throws InterruptedException {
return pollFirst(timeout, unit);